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
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