Skip to main content
KEria.1
Associate II
July 2, 2021
Solved

I am having troubles configuring ADC1 and ADC2 to run simultaneously using DMA. I was able to run multiple channels of ADC1 using DMA, but when I try to do it for ADC1 and ADC2, I only get one of them working. Any Advice?

  • July 2, 2021
  • 3 replies
  • 2677 views

I am using STM32H753ZI Nuccleo board. When I configure it on cube, I am using independent mode (otherwise no ADC works).

I was only able to make them work together by stopping the running ADC in the conversion completion interrupt and raise a flag to start the other one. The problem is that I need both of them to run together without enabling and stopping the ADC_DMAs.

This topic has been closed for replies.
Best answer by TDK

You didn't answer the middle question, but if OVR is set, you're likely converting too fast.

3 replies

TDK
July 2, 2021

Examine registers when they don't work. Do any overflow flags get set? How fast are the conversions? What does the one "not working" mean exactly?

"If you feel a post has answered your question, please click ""Accept as Solution""."
KEria.1
KEria.1Author
Associate II
July 2, 2021

@TDK​  The one not working means there is no values read from the ADC. The ADC that works is the first one initialized. and yes, I have an OVR in the ISR register.

KEria.1
KEria.1Author
Associate II
July 2, 2021

..

TDK
TDKBest answer
July 2, 2021

You didn't answer the middle question, but if OVR is set, you're likely converting too fast.

"If you feel a post has answered your question, please click ""Accept as Solution""."
KEria.1
KEria.1Author
Associate II
July 2, 2021

I could use some help answering the middle question..