Other Parts Discussed in Thread: CC1310
Tool/software: TI-RTOS
Hi,
I use watchdog timer in CC1310 top of the TI-RTOS. I set it generate system reboot interrupt and I checked my code using infinite loop. I put while(); into my code and I defined watchdog timeout. When I run the code my CC1310 LaunchPad rebooting when comes the timeout. But I want to know what happen if TI-RTOS stuck somewhere? Because enabling WDT I used TI-RTOS library functions. Beginning of my code I added this library header #include <ti/drivers/Watchdog.h> . If TI-RTOS hang still watchdog timer is functioning? Can anyone please give me clear understanding about this? Thank you.
Here is my code for initializing WDT,
void wdtSetup()
{
Watchdog_Params params;
/* Call board init functions */
Watchdog_init();
/* Create and enable a Watchdog with resets disabled */
Watchdog_Params_init(¶ms);
params.callbackFxn = (Watchdog_Callback)watchdogCallback;
params.resetMode = Watchdog_RESET_ON; //generate Reboot interrupt
watchdogHandle = Watchdog_open(Board_WATCHDOG0, ¶ms);
Watchdog_setReload(watchdogHandle, 30000000); //set WDT period
}