cancel
Showing results for 
Search instead for 
Did you mean: 

IWDG reset and data retention

deckhard
Associate III

Hi

following a reset by the IWDG, does the SRAM1 or SRAM2 keep their content?

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

SRAM is retained on reset, as long as you don't lose power. Although most variables are initialized to zero or whatever their starting value is in the startup script.

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

View solution in original post

4 REPLIES 4
TDK
Guru

SRAM is retained on reset, as long as you don't lose power. Although most variables are initialized to zero or whatever their starting value is in the startup script.

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

Do you know where it is done on the IAR startup script?

deckhard
Associate III

How can I save some data in SRAM and read it again following a reset?

TDK
Guru

I am not familiar with IAR.

In STM32CubeIDE, you can mark sections in the linker as NOLOAD which will prevent initialization.

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