Hello,
I managed to figure out why my LPC1114 keeps on resetting when the watchdog is enabled: it seems that if one feeds the watchdog too often:
for (;;) { feed_wdt() ; }
the processor resets!
But, if a delay is inserted, like this:
for (;;) { feed_wdt() ; for (l_index = 0 ; l_index < 10000 ; l_index++) __nop() ; }
it will not.
Any ideas what's going on here? I could not find a reference to this behavior in the user manual.
<quote>Any ideas what's going on here?</quote>
Tapeer,
what do u do in yore function feed_wdt????
Always yo're freind.
Zeusti
This is actually the result of a uv4 (MDK 4.14) bug - put a LPC1114 on a debugger, run the watchdog-enabled program and open the watchdog peripheral window. What happens? That's right. Processor reset.
<quote>That's right.</quote>
// comment removed to spare ops embarrassment
Zeusti.
My previous post was on behalf of uv4 users that happen to use MDK 4.14 combined with a LPC11xx processor. I do not know if it applies to later version of the tool chanin. You are welcome to try it yourself to get convinced.