embassy-rs / stm32-data

75 stars 105 forks source link

EEPROM memory (genuine, not emulated) support for STM32 devices #480

Open Resonanz opened 4 months ago

Resonanz commented 4 months ago

Some of the most basic STM32 microcontrollers appear to have genuine (not emulated) EEPROM memory.

For example, the 20 pin STM32L010F4 datasheet mentions 128 bytes of EEPROM:

https://www.st.com/resource/en/datasheet/stm32l010f4.pdf

On page 63 of the datasheet, the N_cyc erase/write times are different for FLASH and EEPROM, althought both have 30 years data retention.

On page 43 in the following PDF, the EEPROM memory address is provided as 0x0808 0000 - 0x0808 01FF (these are boundary address, up to 512 bytes):

https://www.st.com/resource/en/reference_manual/rm0451-ultralowpower-stm32l0x0-advanced-armbased-32bit-mcus-stmicroelectronics.pdf

On page 735 there is a "Write to data EEPROM code example".