Is the 'EEPROM' library of 'STM32F103CB' safe?

Post here first, or if you can't find a relevant section!
Post Reply
myksj1105
Posts: 86
Joined: Sun Jun 18, 2023 11:35 am
Answers: 2

Is the 'EEPROM' library of 'STM32F103CB' safe?

Post by myksj1105 »

[Status]
1. MCU: STM32F103CB
2. CORE1: https://github.com/rogerclarkmelbourne/Arduino_STM32
3. CORE2: https://github.com/stm32duino/Arduino_Core_STM32

Is the 'EEPROM' library of 'STM32F103CB' safe?

hello. Nice to meet you.

As far as I know, 'STM32F103CB' does not have 'EEPROM'. However, you can use the 'EEPROM' library in another way.

Here's what I'm curious about:
Is 'STM32F103CB' reliable for saving to 'EEPROM'?

What I mean by stability is
1) There must be no debug in the MCU.
2) The stored value must be maintained.

I wonder. Please help me.
by ag123 » Thu May 16, 2024 6:57 am
stm32f103cb has 128k flash, stm32f103c8 has 64k flash.
EEProm library use that flash that is shared with program codes to store your data.
check that storing data will not erase part of your program.
note that normally, erasing a full block at the 'back' is 1/2 of the flash so for stm32f103cb it can be like erase 64k and c8 32k, if your codes overlaps into the 2nd half it may be erased.

again check in the ref manual of the soc for the details.

there is an eeprom library inside Arduino_core_stm32 if you are using stm core.
https://github.com/stm32duino/Arduino_C ... ies/EEPROM
Go to full post
ag123
Posts: 1757
Joined: Thu Dec 19, 2019 5:30 am
Answers: 27

Re: Is the 'EEPROM' library of 'STM32F103CB' safe?

Post by ag123 »

stm32f103cb has 128k flash, stm32f103c8 has 64k flash.
EEProm library use that flash that is shared with program codes to store your data.
check that storing data will not erase part of your program.
note that normally, erasing a full block at the 'back' is 1/2 of the flash so for stm32f103cb it can be like erase 64k and c8 32k, if your codes overlaps into the 2nd half it may be erased.

again check in the ref manual of the soc for the details.

there is an eeprom library inside Arduino_core_stm32 if you are using stm core.
https://github.com/stm32duino/Arduino_C ... ies/EEPROM
myksj1105
Posts: 86
Joined: Sun Jun 18, 2023 11:35 am
Answers: 2

Re: Is the 'EEPROM' library of 'STM32F103CB' safe?

Post by myksj1105 »

@ag123

Thank you for answer. have a good day.

thank you.
Post Reply

Return to “General discussion”