Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by alubeiro on Thu Dec 04 03:27:37 MST 2014
Hi guys,

I'm working with LPC1227.
I want the watchdog to cause a reset so I am setting WDRESET = 1. As the datasheet says, with WDRESET  = 0 a watchdog time-out will cause an interrupt and with WDRESET = 1 a watchdog timeout will cause a chip reset.
Ok, so in my code i have put a while(1), to force the WDT to reset. The fact is, that when i run the code while I'm debugging, the WDT does force the reset but when I run the code with the debugger disconnected the code enters into WDT interruption.

Though i have solved the problem forcing a reset into WDT interrupt i would like to do as it should be done.

Can anybody help me? I have no idea why is this happening.

Thanks and regards