View Full Version : Ram Variable value retention

Jan 25th, 2015, 09:46 AM
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.

Neal Manson
Feb 11th, 2015, 10:20 AM
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.