lpcware

LPC43xx windowed watchdog timer reset flag

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by wlamers on Fri Jul 18 05:49:50 MST 2014
I have a system that needs reset when an initialisation error occurs. Unfortunately setting bit 0 of RESET_CTRL0 of the reset generation unit (RGU) does not work as I would expect. The core seems to reset (indicated by the LED's all burning) but then it is stuck somewhere as if the wrong address is loaded or something.

Therefore I use the WWDT to force a reset. This actually works as expected. The only thing I need is to check what caused the reset (after a boot/reset). There is a flag in the MOD register of the WWDT called WDTOF (bit2). In contrast to what the manual states, this bit stays 0 after a WWDT reset. I tried setting it by hand (to 1) before starting the WWDT causing the reset. But even than is the flag 0 after the reset. Hence I can not check if the WWDT caused the reset. I tried this on two boards but both behave the same.

What am I doing wrong here?

Outcomes