2020-07-06 09:21 AM
/* 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!
2020-07-06 11:41 AM
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.
2020-07-07 12:04 AM
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!