I am using Cold fire MCF52259 in our project.
I wanted to know the status of variables declared in RAM
during the Watch dog timer reset.
Will the variable restore its value on next power ON?
See also http://www.utasker.com/forum/index.php?topic=631.0
mjbcswitzerland gave link to excellent explanation for SRAM.
But, content of DRAM isn't guaranteed to be preserved due to suspending of the refresh.
Note, that the start-up code regularly include some memory test, which overwrites the SRAM or DRAM content.
Is it not possible to stop memory test during soft reset?
I believe, any good start-up code has a few defines, which customize the behavior, including enable/disable memory test.
See the source code of your system start-up module. It's possible, that on-chip SRAM isn't tested at all.
Thanks for your input.
Retrieving data ...