Skip to main content
deckhard
Associate III
December 30, 2020
Solved

IWDG reset and data retention

  • December 30, 2020
  • 4 replies
  • 995 views

Hi

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

Thanks

This topic has been closed for replies.
Best answer by TDK

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.

4 replies

TDK
TDKBest answer
December 30, 2020

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""."
deckhard
deckhardAuthor
Associate III
December 30, 2020

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

deckhard
deckhardAuthor
Associate III
December 30, 2020

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

TDK
December 30, 2020

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""."