cancel
Showing results for 
Search instead for 
Did you mean: 

Power fail during flash write

bob2
Associate II
Posted on August 06, 2008 at 12:44

Power fail during flash write

1 REPLY 1
bob2
Associate II
Posted on August 06, 2008 at 12:44

We use the ST10F276 with internal flash for CODE. We have a protected boot block with the ability to erase the application code area and to download a new application over RS232 or CAN. When downloading an application: The bootblock firstly erases the code area and then accepts blocks of code and writes them to the FLASH.

If the power fails AFTER THE ERASE but anytime during the DOWNLOAD and WRITE process, the St10 is left in a non-operational state. This cannot be recovered by resetting etc and appears to be permanent.

Using test code within the first few instructions (to clear bits of P2), we have confirmed that NO CODE is being executed.

Have you any suggestions

Many thanks