cancel
Showing results for 
Search instead for 
Did you mean: 

How to use EEPROM in stm32f103c8t6

NO_ONE
Associate II

Please any one help me , How to use the EEPROM in the stm32f103c8t6, I did not find any details about the EEPROM in data sheet.

How to write program in EEPROM & how to Dump the code in EEPROM using KEIL vision 5.

3 REPLIES 3
GenuineDeveloper
Associate III

You can emulate an EEPROM using the Flash Memory. To start with, you can try the eeprom library provided with the Standard Peripheral Libraries package.

berendi
Principal

STM32F1 has no internal EEPROM, that's why it's not mentioned in the datasheet.

There is internal flash, described in the PM0075 Programming manual STM32F10xxx Flash memory microcontrollers.

Pay attention to the flash memory timings in the datasheet, erasing a sector halts the controller for up to 40ms, and flash endurance, only 10000 erase-write cycles are guaranteed. This is especially important when using some "EEPROM emulation" library, which might erase and rewrite sectors transparently.

> ... erasing a sector halts the controller for up to 40ms, ...

To be correct, Flash execution stall is related to banks, not sectors.

Erasing/programming in any sector of a bank will halt code execution from all sectors within that bank.

The F103c8 has only one bank.

This might be relevant for application timing design.