cancel
Showing results for 
Search instead for 
Did you mean: 

Save data to No init RAM on STM32F7

HPham.1590
Senior

Hello, I'm using STM32F7.

I want to save data on F7 memory, where is not delete after reset.

My data may has 1-2KB size.

Anyone can tell me how to do that?

I read and found that i can do with no init ram, but I can not find any tutorial or documents related it.

Many thanks,

Hieu

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

You need to create a separate linker section that doesn't get initialized on startup, and locate the variable in that section.

https://atadiat.com/en/e-how-to-preserve-a-variable-in-ram-between-software-resets/

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

2 REPLIES 2
TDK
Guru

You need to create a separate linker section that doesn't get initialized on startup, and locate the variable in that section.

https://atadiat.com/en/e-how-to-preserve-a-variable-in-ram-between-software-resets/

If you feel a post has answered your question, please click "Accept as Solution".

Many thanks, TDK