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.

CC2650 watchdog callback is can't working

Other Parts Discussed in Thread: CC2650

hardware: CC2650_LaunchPad

TI-RTOS:2.20

define xPOWER_SAVING

I user the watchdog driver, this is my code


static Watchdog_Handle hWDT=NULL;

void watchdogCallback(UArg handle)
{
    Watchdog_clear(hWDT);
}

void watchdog_init()
{
    // open watchdog
    Watchdog_init();
    Watchdog_Params wdParams;
    uint32_t tickValue;

    Watchdog_Params_init(&wdParams);
    wdParams.resetMode = Watchdog_RESET_ON;
    wdParams.debugStallMode = Watchdog_DEBUG_STALL_OFF;
    wdParams.callbackFxn = watchdogCallback;
    hWDT = Watchdog_open(Board_WATCHDOG, &wdParams);
    // set timeout period to 100 ms
    tickValue = Watchdog_convertMsToTicks(hWDT, 2000);
    Watchdog_setReload(hWDT, tickValue);
}
 

but the device will restart once every 4 seconds.

Look callback function no execution.