[1769] Testing Watchdog

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by bruno on Wed May 29 13:09:50 MST 2013
Hello everyone.

I've doubt about how I can make a test using watchdog.

For example, I get the watchdog in reset mode. What Can I make for testing?
What I do for generation any error to enter in watchdog?

Can I remove the crystal?
Can I see watchdog in the debugger?


/*Clear Flag Time Out*/
if (WDT_ReadTimeOutFlag())
/* Clear WDT TimeOut*/

WDT_Init (WDT_CLKSRC_IRC, WDT_MODE_RESET);    /*Init Watchdog */