STMicroelectronics AN2594 EEPROM Emulation in STM32F10x Microcontrollers

This application note describes an EEPROM emulation technique using the on-chip Flash memory in the STM32F10x devices. It also discusses the differences between external EEPROM and embedded Flash memory.


STMicroelectronics AN2594 EEPROM Emulation in STM32F10x Microcontrollers - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
16
File format
PDF
File size
155 KB
Published
07 August, 2012
Updated
01 October, 2023
MD5 checksum
B0224E64E66A94A31E39FC14930AF158

About this manual

This document explains the differences between external EEPROM and embedded Flash memory, focusing on write access time, writing method, and erase time. It details how STM32F10x devices, which do not include physical EEPROM, can emulate this functionality using on-chip Flash memory.

The note outlines the principle of EEPROM emulation using two Flash memory pages, describing the header status switching and data update flows. It also covers embedded application aspects such as data granularity management, wear leveling to improve Flash endurance, and page header recovery in the event of power loss.

What's inside

  • Embedded Flash memory versus EEPROM
  • Implementing EEPROM emulation
  • Data granularity management
  • Wear leveling
  • Page header recovery
  • Cycling capability
  • EEPROM software description

Specifications

Low-density devices Flash memory density16 to 32 Kbytes
Medium-density devices Flash memory density32 to 128 Kbytes
High-density devices Flash memory density256 to 512 Kbytes
Connectivity line devicesSTM32F105xx and STM32F107xx

Frequently asked questions

What is the main difference between external EEPROM and emulated EEPROM regarding write access time?

External EEPROM has a write access time of 5 to 10 ms for random bytes, whereas emulated EEPROM using Flash memory has a write access time of 20 us for a word.

Can the write process of emulated EEPROM be interrupted by a CPU reset?

Yes, unlike standalone external EEPROM, the write process for emulated EEPROM using embedded Flash memory can be interrupted by a CPU reset.

How many variables can be stored in emulated EEPROM with 10,000 cycles for high-density devices?

The document references a table for this specific limit but does not provide the exact number in the text provided.

Download PDF (155 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →