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.