Watchdog interrupt not working

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Watchdog interrupt not working

511 次查看
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 项奖励
2 回复数

496 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Which processor are you using?

 

regards

0 项奖励

490 次查看
mspenard603
Contributor IV

iMXRT1062. SDK 2.5.1

I got it working by adding EnableIRQ(WDOG1_IRQn);

This isnt in the SDK example. 

0 项奖励