[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.
Is the 'EEPROM' library of 'STM32F103CB' safe?
Is the 'EEPROM' library of 'STM32F103CB' safe?
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 postEEProm 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
Re: Is the 'EEPROM' library of 'STM32F103CB' safe?
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
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
Re: Is the 'EEPROM' library of 'STM32F103CB' safe?
@ag123
Thank you for answer. have a good day.
thank you.
Thank you for answer. have a good day.
thank you.