Skip to main content
KEria.1
Associate II
Jul 2, 2021 4:23 PM UTC
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?

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.
TDK
TDKBest answer
Jul 2, 2021 6:22 PM UTC

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""."

8 replies

TDK
Jul 2, 2021 5:00 PM UTC

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
Jul 2, 2021 6:21 PM UTC

@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
Jul 2, 2021 6:09 PM UTC

..

TDK
TDKBest answer
Jul 2, 2021 6:22 PM UTC

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
Jul 2, 2021 6:32 PM UTC

I could use some help answering the middle question..