cancel
Showing results for 
Search instead for 
Did you mean: 

ADC dma does not trigger interrupt.

TMich.1
Associate III

So my stm32h7 works fine using regular interrupts. But when doing it via DMA, 

void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef *adc)

is never called.

I enabled ADC global interrupt and BDMA channel0 global interrupt.

circular buffer,

continuous conversion mode enabled, conversion data management mode is at DMA circular mode as well.

My other DMA for i2s, SAI and UART work perfectly fine?

I call dma using : 

HAL_ADC_Start_DMA(&hadc3, (uint32_t*) Battery_read, sizeof(Battery_read));

 

1 REPLY 1
Karl Yamashita
Lead III

You didn't mention that you enabled DMA Continuous Requests?

I Can't Believe It's Not Butter. If you find my answers useful, click the accept button so that way others can see the solution.