1471 - What happens if the Power goes down during FLASH Programming?

1471 - What happens if the Power goes down during FLASH Programming?

The FLASH Programming flow involves Erase FLASH device,Program, Verify and Secure(optional). A DONE bit will be set once the whole flow is completed.

Depending on the point where exactly the power is down, the device behavior changes.

1) If the Power goes down before programming, the JEDEC file read back will be wrong and the device has to be reprogrammed.

2) If the Power goes down after Erase and Programming your FLASH, then your FLASH will be programmed but DONE bit will not be set. So at this point the configuration at power up (FLASH to SRAM) will not happen and your device will be functionally wrong, however, the JEDEC file read back will be correct. You can program the DONE bit through your ispVM using the command "FLASH program DONE bit" and the configuration will happen and your device will work fine.

The status of the DONE bit can be read through the ispVM using the command "FLASH program DONE bit".