EEPROM emulation cube expansion software

STM32L4 series microcontrollers feature an internal low-power Flash memory that is able to store code and data.

The X-CUBE-EEPROM application demonstrates how to emulate an EEPROM using the internal Flash memory, thus saving the cost of external components.

For further details refer to the application note ‘EEPROM emulation in STM32L4 series microcontrollers' (AN4894).

Key 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
    • 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.


Technical Documentation

Product Specifications
Description Version Size
EEPROM emulation software expansion for STM32Cube 1.0 115 KB
Application Notes
Description Version Size
EEPROM emulation techniques and software for STM32L4 Series microcontrollers 1.0 461 KB
User Manuals
Description Version Size
Development checklist for STM32Cube Expansion Packages 1.0 283 KB
Development guidelines for STM32Cube Expansion Packages 1.0 485 KB

Publications and Collaterals

Description Version Size
STM32 Open Development Environment Brochure 15.10 4 MB


License Agreement
Description Version Size
Mix Ultimate Liberty+OSS+3rd-party V1 - SOFTWARE LICENSE AGREEMENT 3.1 104 KB

Get Software

Part Number Software Version Marketing Status Supplier Order from ST
X-CUBE-EEPROM 1.0.0 Active ST


Support & Community