2021-03-25 05:31 AM
I'm developing a very small STM32L5 based USB-dongle and do not have enough space on the PCB to add an external EEPROM. So I came to the EEPROM emulation implementation provided by ST called X-CUBE-EEPROM.
The example project for the STM32L5 seems to work fine, but I found that the EEPROM emulation implementation erases all empty EEPROM flash pages each time the microcontroller is power cycled. If erasing an already erased page counts as a new erase cycle, this behavior will wear out the internal flash without needs.