Skip to main content
Visitor II
October 8, 2024
Solved

Having trouble setting up DMA for both ADC1 and ADC2 on STM32F103C8T6 (Blue Pill)

  • October 8, 2024
  • 1 reply
  • 1849 views

I currently have ADC1 working with DMA at 14 MHz so my sample rate is 1 Msps I believe. I want to double my sample rate, so I thought I could use both ADCs with DMA and interleave the buffer data. My issue is that when I am trying to configure ADC2, there is no "DMA Settings" tab, and when I go to adjust the DMA configuration, I am not able to add a DMA request for ADC2. Am I unable to use DMA for both ADCs on the Blue Pill, or am I missing something?

Here is what my ADC1 configuration page looks like with the available "DMA Settings" tab.

chopfensperger_0-1728401318023.png

 

Here is what my ADC2 configuration page looks like without the available "DMA Settings" tab.

chopfensperger_1-1728401353459.png

 

Here is what my DMA configuration page looks like without the option to add a DMA request for ADC2.

chopfensperger_2-1728401389631.png

 

Any help is appreciated!

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

ADC2 doesn't have a DMA trigger, only ADC1.

TDK_0-1728402147194.png

 

Might be able to set it up in dual mode to get this data out.

TDK_1-1728402206961.png

 

1 reply

TDK
TDKBest answer
October 8, 2024

ADC2 doesn't have a DMA trigger, only ADC1.

TDK_0-1728402147194.png

 

Might be able to set it up in dual mode to get this data out.

TDK_1-1728402206961.png

 

"If you feel a post has answered your question, please click ""Accept as Solution""."