RAM status during Watch dog timer

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RAM status during Watch dog timer

2,067 Views
MFC52259
Contributor I

Hello,

 

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?

Labels (1)
0 Kudos
6 Replies

579 Views
mjbcswitzerland
Specialist V
0 Kudos

579 Views
admin
Specialist II

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.

 

0 Kudos

579 Views
AloysiusJegan
Contributor III

 

Yevgenit,

 

Is it not possible to stop memory test during soft reset?

 

 

Jegan

0 Kudos

579 Views
admin
Specialist II

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.

 

0 Kudos

579 Views
AloysiusJegan
Contributor III

Yevgenit,

 

Thanks for your input.

 

Jegan

0 Kudos

579 Views
admin
Specialist II
Based on my understanding of how CPU and RAM work, I can tell you that RAM contents will be preserved during watchdog reset. Of course, you'll have to make sure that startup code doesn't overwrite the variables you want to preserve.
Message Edited by scifi on 2009-07-17 08:30 PM
0 Kudos