S12zvl “unintended” vs. “intentional” watchdog reset

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S12zvl “unintended” vs. “intentional” watchdog reset

555 次查看
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 回复

498 次查看
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 项奖励
回复