2025-09-30 7:11 AM - last edited on 2025-09-30 12:30 PM by mƎALLEm
Exploring ADC discontinuous mode with interrupts. Any issues calling HAL_ADC_Start_IT() from ADC ISR? Looks like a lot of code to run from an ISR.
Solved! Go to Solution.
2025-10-01 1:01 AM
Hello @mccabehm
The recommended approach is to avoid calling HAL_ADC_Start_IT() from within the ADC interrupt service routine (ISR) or its callback function. Instead, you should set a flag inside the ISR or callback to indicate that the ADC conversion has completed. Then, in your main loop check this flag and call HAL_ADC_Start_IT() to start the next conversion.
2025-10-01 1:01 AM
Hello @mccabehm
The recommended approach is to avoid calling HAL_ADC_Start_IT() from within the ADC interrupt service routine (ISR) or its callback function. Instead, you should set a flag inside the ISR or callback to indicate that the ADC conversion has completed. Then, in your main loop check this flag and call HAL_ADC_Start_IT() to start the next conversion.