cancel
Showing results for 
Search instead for 
Did you mean: 

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

chopfensperger
Associate

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!

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

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

View solution in original post

1 REPLY 1
TDK
Guru

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