Using LPC55S16 with IAR and I-jet. Recently added a watchdog to the code (RELEASE build).
It works fine, except for one issue. When I download the code via the I-jet and attempt to debug, the watchdog continues to run when I pause the debugger, and ultimately resets the micro.
The watchdod MOD register has a value of 0x03, so it is not protected.
The watchdog config used during init is:
const wwdt_config_t WWDT_config = {
.enableWwdt = true,
.enableWatchdogReset = true,
.enableWatchdogProtect = false,
.windowValue = WWDT_WINDOW,
.timeoutValue = WWDT_TIMEOUT,
.warningValue = WWDT_WARNING,
.clockFreq_Hz = 250000
};
I have also confirmed that the I-jet option for "Leave Target Running" is disabled.
What is causing this?
Thanks!