AnsweredAssumed Answered

Writing to Flash

Question asked by krueger.arne on Jan 23, 2012
Latest reply on Jan 23, 2012 by Clive One
Hi there,

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:

       
  1. Does the address have a arbitrary (random) value? OR
  2.    
  3. Are only part of the bits written? OR
  4.    
  5. Does it have the default erase value 0xFF?

Thanks for hints or pointers to the relevant documentation.

Thanks in advance,
Arne

Outcomes