Hello @yinqiu,
The SRAM content is preserved across functional reset.
danielmartynek_0-1722934059413.png
The SRAM is initialized in startup_cm7.s up to __INT_SRAM_END, which is by default set to ORIGIN(ram_rsvd2), so you need to adjust that.
After any reset, when the debugger is disconnected, we can trap the execution is a loop like this.
danielmartynek_1-1722934313801.png
Regards,
Daniel