S12zvl “unintended” vs. “intentional” watchdog reset

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

S12zvl “unintended” vs. “intentional” watchdog reset

460 Views
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 Kudos
1 Reply

403 Views
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 Kudos