AnsweredAssumed Answered

RT1062 RTWDOG

Question asked by Michael Mueller on Mar 18, 2020
Latest reply on Mar 27, 2020 by Michael Mueller

I want to simply use the RTWDOG peripheral, with the interrupt before reset. 
I used the MCUXpresso SDK, and generated an example for the RTWDOG (see the code snippet below).

But the behavior is like this :

1) The ISR routine "testWdogIRQ()" is never called

2) In place, the debugger stops at adress 0x202090 (ROM section of the RT)

 

Do someone have any idea about it ?

Thank you in advance ;-)

 

-------------------------------------------------------------------

/* RTWDOG_IRQn interrupt handler */
void testWdogIRQ(void) {
/* Place your code here */
__asm volatile ("bkpt");
}

/*
* @brief Application entry point.
*/
int main(void) {

/* Init board hardware. */
BOARD_InitBootPins();
BOARD_InitBootClocks();
BOARD_InitBootPeripherals();

.....

-------------------------------------------------------------------

/* clang-format on */
const rtwdog_config_t RTWDOG_config = {
.clockSource = kRTWDOG_ClockSource1,
.prescaler = kRTWDOG_ClockPrescalerDivide256,
.testMode = kRTWDOG_TestModeDisabled,
.enableUpdate = true,
.timeoutValue = 200,
.enableWindowMode = false,
.windowValue = 0,
.enableRtwdog = true,
.workMode = {
.enableWait = true,
.enableStop = false,
.enableDebug = false
},
.enableInterrupt = true
};

void RTWDOG_init(void) {
/* RTWDOG peripheral initialization */
RTWDOG_Init(RTWDOG_PERIPHERAL, &RTWDOG_config);
/* Enable interrupt RTWDOG_IRQn request in the NVIC */
EnableIRQ(RTWDOG_IRQN);
}

-------------------------------------------------------------------

 

Outcomes