Content originally posted in LPCWare by wlamers on Mon Jul 28 06:01:25 MST 2014
Quote: DF9DQ
The problem is that a watchdog reset triggers a core reset, which then resets the watchdog peripheral itself, deleting any sign of a watchdog reset.
That explains a lot. Not a very useful flag in that case, so to say.
Thank you for your example. I had solved the issue using a suggestion from the manual is section 14.5.1 by setting a, non-initialised, variable that is given a magic number after successful boot and (a different flag) before a WWD reset. This makes it also possible to distinguish between POR, reset and WWD reset. But I like the event recorder way more and will implement that most likely.