lpcware

Watchdog Timer Reset unexpected behaviour

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by hangdog on Wed Oct 01 05:11:53 MST 2014
Hi

I'm trying to use the watchdog timer to reset an LPC4350 - the device stops running, but seems never to start again. When I hard reset using the reset button on the dev board (DIOLAN), it comes back as expected. What I don't get is... isn't using the WDT equivalent to pressing the reset button? Or did I miss something?

The only other information that might be pertinent is that various interrupts are enabled, so other code can potentially run whilst the WDT is counting down, but this is the only place in the code base that I touch the WDT, so I can't see why anything would get in its way.

Cheers for any insight, my WDT reset code follows:


WWDT_TC = 0xFFFF;
WWDT_MOD = BIT0 | BIT1;
WWDT_FEED = 0xAA;
WWDT_FEED = 0x55;
while (1)
{
}

Outcomes