Ram Variable value retention

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

cross mob
Not applicable
I need to retain the value of a RAM variable after a Hard- reset ,using micro(TC23x) . The reset is happening from External Watchdog.
Compiler using : Tasking
Usage: To jump from application to boot loader.
0 Likes
1 Reply
µC_Wrangler
Employee
Employee
50 solutions authored 100 sign-ins 25 likes received
See UCB_DFlash in the User Manual, and PROCOND.RAMIN/RAMINSEL. With the default values, all of RAM is initialized on a warm power-on reset (i.e., your external watchdog asserts PORST).

It sounds like you want to set RAMIN to Init_Cold (2), so that RAM is only initialized on a cold power-on reset.

Also be aware of 4.1.3, RAM overwrite during start-up: the BootROM may alter the first 8K of DSPR.
0 Likes