This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/LAUNCHXL-CC1350: Watchdog timer not working

Part Number: LAUNCHXL-CC1350
Other Parts Discussed in Thread: CC1350

Tool/software: TI-RTOS

Hello All,

I am trying to reset cc1350 through software by using watchdog timer but i am not able to do it. I am attaching the code that i am using but it is not working:

Watchdog_Params_init(&wp);
wp.callbackFxn = wdtCallback;
// wp.debugStallMode = Watchdog_DEBUG_STALL_ON;
wp.resetMode = Watchdog_RESET_ON;

hWDT = Watchdog_open(WDT_BASE, &wp);
if(hWDT == NULL){


}
Watchdog_setReload(hWDT, 1500000); // 1sec (WDT runs always at 48MHz/32)

void wdtCallback(UArg a0) {

Watchdog_clear(hWDT);
}

I want to reset my device using watchdog timer. Someone please suggest something.

  • Hi Shubham,

    The watchdog timer does not reset on the first timeout; the device resets when it times-out a second time (with the interrupt flag set the first time).  You should not be calling Watchdog_clear() in the callback function; this clears the flag & prevents the second timeout from resetting the device.  A more comprehensive explanation can be found in the driver Doxygen documentation (here).

    Let me know if this helps,

    -- Emmanuel