cancel
Showing results for 
Search instead for 
Did you mean: 

Problem using DMA and ADC

Tom83
Associate II

Hello everyone!

I am trying to use DMA for the first time with an ADC.

I think I have configured my ADC and DMA correctly to work together (see configuration below).

Using the debug I notice that in the HAL_ADC_Start_DMA function, the LL_ADC_REG_StartConversion function blocks the program and I never exit it. If I read the comment of this function, it says "If software start has been selected, conversion starts immediately."

I think that in my ADC configuration I have configured "software start".

Does anyone have any idea what the problem could be?

Thanks.

1 REPLY 1
Amel NASRI
ST Employee

Hi @Tom83 ,

Were you able to fix the faced issue? 

I don't have an idea what is exactly your issue, but I recommend you to follow the step by step wiki article: Getting started with ADC. It will help you to build your own example and add any missing step compared to your own example.

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.