Skip to main content
Visitor II
July 5, 2024
Question

Problem using DMA and ADC

  • July 5, 2024
  • 1 reply
  • 1461 views

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.

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    August 5, 2024

    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