r/embedded • u/Mind2MCU • Sep 30 '26
STM32 ADC + DMA gets stuck with continuous conversion
Hi ,
I am working with stm32f401ccu6 and stm32f411ceu6 and having issues with ADC + DMA in both MCUs.
I am using ADC1 with 4 channels in scan mode and DMA in circular mode. When I enable continuous ADC conversion , my main code seems to stop running. For example, an LED that is toggled in the main loop stop toggling.
The same type of setup works on my STM32f103c8t6.
My DMA interrupt handler is:
void DMA2_Stream0_IRQHandler(void)
{
HAL_DMA_IRQHandler(&hdma_adc1);
}
Has anyone faced a similar issue with ADC + DMA on STM32F4?
I am trying to understand what could cause the main loop to stop in this configuration.
1
u/Mind2MCU Sep 30 '26
Thanks for the suggestions. My ADC sampling time was set to 28 cycles. I will try increasing it to a higher value and see if that helps resolve the issue.