2024-04-26 12:13 AM
Can variable values be stored in some fixed addresses of internal flash and retrieved from them after reset?
is there any example for same.
Solved! Go to Solution.
2024-04-26 02:24 AM
@Uwe Bonnes wrote:You can write to erased memory cells.
@GauravK for more on this, see:
and follow the link.
2024-04-26 02:07 AM
You can write to erased memory cells. This must happen in chunks, e.g. 256 bits on H7 and down to single bytes on some older families. If the retrieved value needs to be reporgrammed later, look for EPROM emulation.
2024-04-26 02:16 AM - edited 2024-04-26 02:22 AM
As @Uwe Bonnes suggested, what you're looking for is:
Application note AN4894, How to use EEPROM emulation on STM32 MCUs:
and the X-CUBE-EEPROM EEPROM emulation expansion software for STM32Cube:
https://www.st.com/en/embedded-software/x-cube-eeprom.html
EDIT:
Older stuff for F4:
AN3969: EEPROM emulation in STM32F40x/STM32F41x microcontrollers
See also:
https://www.st.com/en/embedded-software/stsw-stm32066.html
https://community.st.com/s/question/0D50X00009XkhQn/stm32f4-eeprom-emulation-hal-library
2024-04-26 02:24 AM
@Uwe Bonnes wrote:You can write to erased memory cells.
@GauravK for more on this, see:
and follow the link.
2024-04-30 02:09 AM
I will be checking and get back if needed