2008-08-06 03:44 AM
2008-08-06 03:44 AM
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