Page 1 of 1

STM32F103C8 and EEPROM

Posted: Sun Aug 04, 2024 8:51 am
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.

Re: STM32F103C8 and EEPROM

Posted: Sun Aug 04, 2024 1:08 pm
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.

Re: STM32F103C8 and EEPROM

Posted: Mon Aug 05, 2024 8:22 am
by ChPr
Tank you very much "GonzoG" for this explanation and example.

Sincerely.

Pierre.