I am implementing a emulated EEPROM in flash memory on a STM32 microprocessor, mostly based on the Application Note by ST (AN2594 - EEPROM emulation in STM32F10x microcontrollers).
The basics outline there and in the respective Datasheet and Programming manual (PM0075) are quite clear. However, I am unsure regarding the implications of power-out/system reset on flash programming and page erasure operations. The AppNote considers this case, too but does not clarify what exactly happens when a programming (write) operations is interrupted:
- Does the address have a arbitrary (random) value? OR
- Are only part of the bits written? OR
- Does it have the default erase value 0xFF?
Thanks for hints or pointers to the relevant documentation.
Thanks in advance,