Other Parts Discussed in Thread: SYSCONFIG, SYSBIOS
Hello,
I'm writing a customized bootloader that resides in the last flash page and can therefore override all the other flash pages, which can then be used by the application.
Of course my application uses also the first flash page. As usual before updating the (first) page I have to erase it. Only then I can program the right content. But at the beginning of the first page there is the address of my program, i.e. the address where the CPU should jump to. In my case this is the start of my bootloader, the last flash page. Erasing the first page and then writing the right content (containing again the right start address) is ok.
But when there is a reset/power cut in the unlucky moment after I have erased the first flash page but before the new content is written, the processor doesn't find a valid start address and my whole device is broken (no bootloader started).
Is there any solution for this principle problems or do we simply have to say "while you do an update no power cut is allowed" (which we can't guarantee in our case).
BR
Erwin