Watchdog example

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

Watchdog example

693 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by miccio on Fri Aug 07 04:35:52 MST 2015
Hello everyone,
while going through the Watchdog example code (specifically, the one for lpc11c24) I noticed something a little misleading: the following snippet claims:

/* Comment this define to let the watchdog timeout. In this case, the board
   will continuously drop via to the WDT warning. */
#define DISABLE_WDT_TIMEOUT



However, there SysTick interrupt cointains this:

#if !defined(DISABLE_WDT_TIMEOUT)
Chip_WWDT_Feed(LPC_WWDT);
#endif


So it will actually feed the watchdog if the symbol isn't defined, therefore preventing it from timeout-ing.
So my conclusion is that it actually works the other way round, which is: comment the symbol -> no timeout , keep the symbol -> force timeout and call WDT_IRQHandler.

Is this a known issue or am I missing something? Thanks in advance
Labels (1)
0 Kudos
0 Replies