Watchdog interrupt not working

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Watchdog interrupt not working

515 Views
mspenard603
Contributor IV

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

0 Kudos
2 Replies

500 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Which processor are you using?

 

regards

0 Kudos

494 Views
mspenard603
Contributor IV

iMXRT1062. SDK 2.5.1

I got it working by adding EnableIRQ(WDOG1_IRQn);

This isnt in the SDK example. 

0 Kudos