Hello,
I'm trying to get the WDOG1 to launch an ISR. I've followed the SDK example fairly exactly. But, despite seeing the WTIS status bit go 1 for an interrupt, and the WICR enable bit being 1, the ISR ever runs right before the watchdog triggers.
void WDOG1_IRQHandler(void)
{
WDOG_ClearInterruptStatus(WDOG1, kWDOG_InterruptFlag);
ppPRINTF(DEBUG_CONSOLE_MODE_ERROR, "WATCHDOG INTERRUPT TRIGGERED!");
}
WDOG_GetDefaultConfig(&wdog1_config);
wdog1_config.timeoutValue = 0xFU;
wdog1_config.enableInterrupt = true;
wdog1_config.interruptTimeValue = 0x4U;
WDOG_Init(WDOG1, &wdog1_config);
//wdog1 kick/refresh is commented out
Hello,
Which processor are you using?
regards
iMXRT1062. SDK 2.5.1
I got it working by adding EnableIRQ(WDOG1_IRQn);
This isnt in the SDK example.