Skip to main content
JAbra
Associate II
May 5, 2020 3:29 PM UTC
Question

Simple way of storing data in non-volatile memory

I'm using the STM32H747 and is interested in storing some variables containing configuration data even after reset.

Is there a simple way of doing this?

I basically would like to map a variable to be stored in SRAM or EEPROM instead of RAM.

Best regards

Johan

This topic has been closed for replies.

2 replies

Uwe Bonnes
Chief
May 5, 2020 3:50 PM UTC

If you do not require the data to survive a power cycle, simple leave in in RAM but do not initialize is when booting. If the variable is to survive a power cycle, put write it some protocolize way into one flash sector. there are examples to do so out there.

JAbra
JAbraAuthor
Associate II
May 6, 2020 12:01 PM UTC

Since it's configuration data which the user don't want to rewrite after every power cycle, it need to survive a power cycle.