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.