STM32F103C8 and EEPROM

Post here first, or if you can't find a relevant section!
Post Reply
ChPr
Posts: 23
Joined: Thu Jun 20, 2024 8:03 am
Answers: 1

STM32F103C8 and EEPROM

Post by ChPr »

Hello everybody,

According to what I've read and misunderstood, in an STM32F103C8, there would be no EEPROM but there would be a way to save a few bytes in it. My need is reduced to one byte.

Can you tell me how to save it (write every 15 days, or even less) and read every day.

Thanks for your help.

Pierre.
GonzoG
Posts: 453
Joined: Wed Jan 15, 2020 11:30 am
Answers: 32
Location: Prudnik, Poland

Re: STM32F103C8 and EEPROM

Post by GonzoG »

Built-in eeprom library uses emulated eeprom in flash memory. Usage is the same as with Arduino AVR (Uno, micro, nano, etc) boards.
https://github.com/stm32duino/Arduino_C ... -Emulation

Downside - it uses 2 pages of flash memory so with F103C8 it takes 2kB out of flash just to store 256B of data.
ChPr
Posts: 23
Joined: Thu Jun 20, 2024 8:03 am
Answers: 1

Re: STM32F103C8 and EEPROM

Post by ChPr »

Tank you very much "GonzoG" for this explanation and example.

Sincerely.

Pierre.
Post Reply

Return to “General discussion”