Design Win

EEPROM emulation expansion software for STM32Cube

Get Software Download databrief
Sample & Buy
Tools & Software
Quality & Reliability
Partner products
Sales Briefcase
Get Started

Product overview


The microcontrollers in the STM32C0 Series, STM32G0 Series, STM32G4 Series, STM32L4 Series, STM32L4+ Series, STM32L5 Series, STM32U5 Series, STM32WB Series, and STM32WL Series feature an internal low-power flash memory that is able to store code and data.

The applications in the X-CUBE-EEPROM Expansion Package demonstrate how to emulate an EEPROM using the internal flash memory, thus saving the cost of external components. For the host board in P-NUCLEO-WB55, a specific example maintaining a Bluetooth® Low Energy connection and communication while processing EEPROM operations is provided. For this example, a mechanism to share efficiently the flash memory between the two STM32WB microcontroller cores is implemented.

For more details, refer to the EEPROM emulation techniques and software for STM32 microcontrollers application note (AN4894), available on www.st.com.

  • All features

    • Lightweight implementation and reduced footprint
    • Simple API that consists of a few functions to format, initialize, read and write data, and clean up flash memory pages
      • User-configured EEPROM size
      • Supports 8-bit, 16-bit, and 32-bit variables; supports 96-bit variables for the STM32U5 Series
      • Clean-up simplified for the user (background page erase)
      • Interrupt servicing is possible during program and erase operations
    • At least two flash memory pages to be used for internal data management
    • Wear leveling algorithm to increase emulated EEPROM cycling capability
    • Increased EEPROM memory endurance versus flash memory endurance
    • Robust against asynchronous resets and power failures
    • Optional protection for flash memory sharing between the two cores of the STM32WB Series microcontrollers
    • Maintenance of cache coherency

Get Software