??? 01/04/08 17:48 Read: times |
#149054 - it goes like this: Responding to: ???'s previous message |
You program the "upgrader" (the hex file) into block 0 using FlashMagic. It contains the new content for block 1 at addresses 0003-07FF and 1F00-1FFF; it contains the jump 2000h at 0000, and it contains the "upgrader" itself at addresses 2000h up.
When this program is run after subsequent reset, as it resides in block 0, it erases sectors 0000-07FF and 1F00-1FFF in block 1, then programs zeroes into addresses 0000-0002 in block 1 and then copies the content of 0003-07FF and 1F00-1FFF of block 0 into block 1, then verifies it, and then "commits suicide" (i.e. performs blockerase of block 0). --- 21h.0 in the bootloader is the equivalent of the lock bit - it indicates whether password protection is active or not. Have fun! JW |
Topic | Author | Date |
P89V51RC2_V03_UPD_ISP.HEX Question | 01/01/70 00:00 | |
yes, this is an _upgrader_ | 01/01/70 00:00 | |
Flash Mapping in P89v51 | 01/01/70 00:00 | |
P89V firmware update: to be continue... | 01/01/70 00:00 | |
that's no shame | 01/01/70 00:00 | |
P89V51 firmware upgrade | 01/01/70 00:00 | |
it goes like this: | 01/01/70 00:00 | |
Thanks![]() | 01/01/70 00:00 |