RAM status during Watch dog timer

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

RAM status during Watch dog timer

3,592件の閲覧回数
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?

ラベル(1)
0 件の賞賛
返信
6 返答(返信)

2,104件の閲覧回数
mjbcswitzerland
Specialist V
0 件の賞賛
返信

2,104件の閲覧回数
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 件の賞賛
返信

2,104件の閲覧回数
AloysiusJegan
Contributor III

 

Yevgenit,

 

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

 

 

Jegan

0 件の賞賛
返信

2,104件の閲覧回数
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 件の賞賛
返信

2,104件の閲覧回数
AloysiusJegan
Contributor III

Yevgenit,

 

Thanks for your input.

 

Jegan

0 件の賞賛
返信

2,104件の閲覧回数
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 件の賞賛
返信