This application note describes the software solution for substituting standalone EEPROM by emulating the EEPROM mechanism using the on-chip Flash of STM32F2xx devices.
The document explains how to replace external EEPROMs with internal Flash memory in STM32F2xx devices. It details the use of specific software algorithms and at least two Flash sectors to emulate non-volatile storage, allowing for data persistence without external components.
The guide covers the implementation principles, including page status management (ERASED, RECEIVE_DATA, VALID_PAGE) and data swapping mechanisms. It also addresses embedded application aspects such as wear leveling, power loss recovery, and timing constraints.
| Backup SRAM Size | 4 Kbytes |
|---|---|
| Flash Sector Size (Sectors 0-3) | 16 Kbyte |
The emulated EEPROM size is flexible and depends on the limits and constraints of the sector size used.
No, ongoing word write operations on STM32F2xx embedded Flash are not interrupted by a CPU reset.