S12zvl “unintended” vs. “intentional” watchdog reset

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

S12zvl “unintended” vs. “intentional” watchdog reset

597件の閲覧回数
charudattaingal
Contributor IV

Hello Team,


we need to  discern unintended” vs. “intentional” watchdog reset.

we need to differentiate watchdog reset is occur due to no feeding/Servicing watchdog,when window is open.
OR 
watchdog reset occur due to writing invalid pattern on watchdog register.


Please suggest.


Thanks You!


Best Regards,

Charudatta

0 件の賞賛
返信
1 返信

540件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Charudatta,

You can use a flag variable at a specific address and then read it in startup code by a pointer before it gets reinitialized by the ZeroOut, CopyDown functions in the default CW startup code. Or you can place a variable to NO_INIT section as it was discussed here: How to avoid RAM cleaned in start up for S12ZVML 

So that it doesn't get initialized. 

Regards,

Daniel

0 件の賞賛
返信