cancel
Showing results for 
Search instead for 
Did you mean: 

Program stops in WWDG_IRQHandler() infinite loop after enabling ADC interrupts.

BBecs.1
Associate II
/* enable ADC interrupts */
HAL_NVIC_SetPriority(ADC1_IRQn, 0x05, 0x00);
HAL_NVIC_EnableIRQ(ADC1_IRQn);

I have an analog input connected to the ADC1 on the SensorTile evaluation board and would like to run the ADC in interrupt mode. I mostly follow the instruction given here: https://visualgdb.com/tutorials/arm/stm32/adc/

Then, when it comes to enabling the interrupts with the above code, the program enters the infinite loop in the WWDG_IRQHandler(). Is there anything obvious that I missed? Thank you for any help!

2 REPLIES 2
berendi
Principal

Is there a function called ADC1_IRQHander()? Check the spelling. If there is not, then the vector is redirected to a default handler with an infinite loop, and the debugger can not decide which one of the dozens of ​undefined handlers were actually called.

Thank you! This was exactly the problem. I had a function called ADC_IRQHandler(), changing it to ADC1_IRQHandler() did the trick! Thank you very much for this knowledgable and quick answer!