Other Parts Discussed in Thread: SYSBIOS
Hi,
in my application in DEBUG mode I have set HW watchdog with these settings (RESET_OFF and DEBUG_STALL_ON):
// --- Enable and run HW WDT --- // Call HW watchdog initialization functions Watchdog_init(); // Create and enable a Watchdog with resets enabled Watchdog_Params_init(&hdWdParams); hdWdParams.callbackFxn = (Watchdog_Callback)watchdogHwiCallback; hdWdParams.resetMode = Watchdog_RESET_OFF; hdWdParams.debugStallMode = Watchdog_DEBUG_STALL_ON; hwWatchdogHandle = Watchdog_open(CONFIG_WATCHDOG_0, &hdWdParams); if (hwWatchdogHandle == NULL) { // Error opening HW Watchdog SwReset(enErr_openingHwWatchdog); // Do SW reset } // Set HW WDT timeout period wdTickValue = Watchdog_convertMsToTicks(hwWatchdogHandle, HW_WDT_TIMEOUT_MS); Watchdog_setReload(hwWatchdogHandle, wdTickValue);
Runing application I always receive unexpected Interrup by watchdog. Trying to understend the reason I found that it looks like that in Debug the function Watchdog_clear(hwWatchdogHandle) don't reload WDT timer, so my question is:
Is there somethig special with HW watchdog behavior in DEBUG?