Re: EEPROM.put - where does it stores data?
Posted: Tue Apr 14, 2020 12:55 pm
Each STM32 "core" runs a set of datacentric variables within the Arduino IDE environment; these variables are read at compile time to allow build scripts to know how to manipulate things that change between different microcontroller models. So an STM32F103 uC will have different environmentals that an STM32F4xx.
To make it more complicated, the STM32Duino "Official" core and the Roger's core use different scripts. So, it is possible that a EEPROM library for Roger's core will not work as expected with the Official core.
Each core will have libraries that should be used with only that core. Of course, anything can be hacked to persuade it to work, but you are going to have to go through the effort yourself of find someone online that has already done this work.
Example:
IMHO, the very best way to deal with this EEPROM needs is to use a real EEPROM chip. These chips are often found on precision clock modules. Like for example: (not a vendor recommendation)
To make it more complicated, the STM32Duino "Official" core and the Roger's core use different scripts. So, it is possible that a EEPROM library for Roger's core will not work as expected with the Official core.
Each core will have libraries that should be used with only that core. Of course, anything can be hacked to persuade it to work, but you are going to have to go through the effort yourself of find someone online that has already done this work.
Example:
https://github.com/stm32duino/Arduino_C ... ies/EEPROM
IMHO, the very best way to deal with this EEPROM needs is to use a real EEPROM chip. These chips are often found on precision clock modules. Like for example: (not a vendor recommendation)
Of course, if you do not need the clock, just buy the external EEPROM. If you are going to cycle the data often, consider FRAM. I know at least one member of Roger's forum that successfully made FRAM work: