About data retention of SRAM when software watchdog reset occurs

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
SuSh_1535366
Level 5
Level 5
Distributor - Macnica (Japan)
10 solutions authored 10 likes given 10 likes received

Hello,

When a software watchdog reset (SWDGR) occurs, if DSRAMR is set correctly, is the data in SRAM2 retained?

At this time, the data in SRAM0/1 can not be retained, is this right?

Regards,

Shimamura

0 Likes
1 Solution
Takashi_M
Moderator
Moderator
Moderator
1000 replies posted 500 solutions authored 750 replies posted

You may mix up with the software watchdog reset and Deep Standby mode.

Even though the software watchdog reset happens, SRAM0/1/2 can be retained with values just before the reset.

In Deep Standby mode, the power supply for SRAM0/1/2 is turned off inside device. that mean that SRAM0/1/2 are not retained in this mode.

Note that if DSRAMR is configured as the contents of SRAM2 is retained, SRAM2 is retained even in Deep Standby mode.

View solution in original post

0 Likes
2 Replies
Takashi_M
Moderator
Moderator
Moderator
1000 replies posted 500 solutions authored 750 replies posted

You may mix up with the software watchdog reset and Deep Standby mode.

Even though the software watchdog reset happens, SRAM0/1/2 can be retained with values just before the reset.

In Deep Standby mode, the power supply for SRAM0/1/2 is turned off inside device. that mean that SRAM0/1/2 are not retained in this mode.

Note that if DSRAMR is configured as the contents of SRAM2 is retained, SRAM2 is retained even in Deep Standby mode.

0 Likes
SuSh_1535366
Level 5
Level 5
Distributor - Macnica (Japan)
10 solutions authored 10 likes given 10 likes received

Hello TakashiM_61,

Thank you for your reply!

0 Likes