Watchdog interrupt not working

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Watchdog interrupt not working

510件の閲覧回数
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 返答(返信)

495件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Which processor are you using?

 

regards

0 件の賞賛

489件の閲覧回数
mspenard603
Contributor IV

iMXRT1062. SDK 2.5.1

I got it working by adding EnableIRQ(WDOG1_IRQn);

This isnt in the SDK example. 

0 件の賞賛