Content originally posted in LPCWare by gbhefner on Fri Dec 07 09:22:15 MST 2012
Sorry to bump this old thread, but I'm having the same problem with a 1768. When I try to write to the WDFEED register, I see no change. I'm wondering if that's just because it's a write-only register. The WDTV never updates to match the WDTC, it always contains 0xFF
I've run it with a debugger, and when I step slowly through my kick function, which disables interrupts, writes 0xAA, writes 0x55, and then enables interrupts, I get different results. As soon as I disable the interrupts, WDTV comes up with a value that's much closer to my WDTC. When I step to the next line, which writes 0xAA to WDFEED, the watchdog interrupt or reset occurs. I realize that it will behave differently with the debugger attached, but as far as I can tell, I should be getting a WD reset whenever I halt the program, or fail to kick the WDT for longer than the timeout and neither is happening.
Does anyone here have experience with the WDT on the 17xx devices?
Thanks!