ST AN2061 handbook

This document explains the differences between external EEPROMs and embedded-Flash, and provides advice on how to substitute external EEPROMs with emulated-EEPROM using the on-chip Flash of ST10F2xx devices. The document assumes that the reader is familiar with handling embedded aspects, focusing on the differences between EEPROMs and embedded-Flash.


ST AN2061 handbook - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
15
File format
PDF
File size
91 KB
Published
06 August, 2012
Updated
29 September, 2023
MD5 checksum
6C6F123635F41A0F6596EA12AD3676A6

About this manual

The document describes a method for emulating an external EEPROM using the embedded Flash memory found in STMicroelectronics ST10F2xx microcontrollers. It highlights that while the concept is straightforward, specific embedded aspects must be considered to ensure data security and system robustness.

Key differences between standard serial EEPROMs and Flash-based emulation are detailed, including write access times (milliseconds for EEPROM versus microseconds for Flash), writing methods (CPU-independent vs CPU-dependent), and erase times. The text emphasizes that Flash requires block erasure before programming, unlike EEPROM which allows random byte writes.

What's inside

  • Introduction
  • Embedded-Flash and EEPROM Differences
  • EEPROM Emulation Concept
  • Program/erase Cycle Requirements
  • Reading the Flash while Erasing or Programming
  • Field Reprogramming with ST10F2xx

Specifications

Supported DevicesST10F269, ST10F280, ST10F276, ST10F252, ST10F296 and derivatives
EEPROM Erase Timeseconds (ex: 1.58s)

Frequently asked questions

Does Flash require block erasure before programming?

Yes, unlike EEPROM which allows random byte writes, Flash requires a block erase operation to free up space before write.

Can a CPU reset interrupt the writing process for emulated EEPROM?

Yes, once started by the CPU, the writing can be interrupted by a power failure and by a CPU reset.

Does an external EEPROM require a block erase before writing?

No, unlike Flash, EEPROM does not require a block erase operation to free-up space before write.

What happens if the Flash erase process is interrupted during phase 2?

The content after the interrupt shall be regarded as a totally random content.

Download PDF (91 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →