Emulated EEPROM is not erased after flashing new code
It also doesn’t erase after starting new debug session. Is that expected behavior?
I am using STM32L476, and I downloaded X-CUBE-EEPROM software package, included it into my project and it works fine. EEPROM content is retained after NVIC_SystemReset() and after power up, which is great. But I want to start with clean EEPROM every time I flash new code or start a new debug session.
In X-CUBE-EEPROM example code, in EE_Init() it calls EE_Format() if no active page is present, but it never goes there, except first time every EEPROM is initiated.
I couldn’t find any way around this?
Appreciate your help.
