Other Parts Discussed in Thread: CC2650
Tool/software: TI-RTOS
Hi All,
I try to introduce watchdog for CC2640 unexpected hang up,
void watchdogCallback(uintptr_t unused)
{
// iBSAdv.frame.data.gpi |= GPI_SOURCE_HALL;
iBSAdv.frame.data.tag_type ++;
// IgsBeacon_syncAdvFrame();
// IgsBeacon_enqueueMsg(SEB_ADV_MODE_CHANGE_EVT, ADV_MODE_SINGLE_BURST);
Watchdog_clear(watchdogHandle);
// while(1);
// SystemReset();
}
static void IgsWatchdog_Init(void)
{
static Watchdog_Params params;
Watchdog_init();
Watchdog_Params_init(¶ms);
params.resetMode = Watchdog_RESET_OFF;
params.debugStallMode = Watchdog_DEBUG_STALL_ON;
params.callbackFxn = (Watchdog_Callback)watchdogCallback;
watchdogHandle = Watchdog_open(Board_WATCHDOG0, ¶ms);
if (watchdogHandle == NULL) {
/* Error opening Watchdog */
while (1);
}
uint32_t tick = Watchdog_convertMsToTicks(watchdogHandle, 10000);
Watchdog_setReload(watchdogHandle, tick);
}
However watchdogCallback never be called.
Try to debug and find hwi exception happened.
Any hint or idea ?
Thanks

