Skip to main content
JWije.1
Visitor II
June 18, 2022
Question

How to enable DMA scan conversion for ADC2 of my MCU in CubeMX

  • June 18, 2022
  • 1 reply
  • 1179 views

I have mapped inputs to multiple channels of ADC1 and ADC2 in the pinout of my STM32F103RCTx MCU with CubeMX. However, while I am able to configure DMA for ADC1, the "DMA settings" tab for ADC2 does not appear when I open the ADC2 configuration in CubeMX. Is DMA unavailable for ADC2 in this MCU? Or is there a way to enable it? I could not find any mention of this in the datasheet, so any help would be appreciated.

0693W00000NsEcdQAF.png

This topic has been closed for replies.

1 reply

Simon.T
ST Employee
June 20, 2022

Hello @JWije.1​ ,

There is no direct connexion between ADC2 and DMA. See page 227 of the RM0008:STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and STM32F107xx advanced Arm®-based 32-bit MCUs

If you want to do that you need to use dual ADC mode and transfer the data through ADC1. Or use the ADC3 which has a direct link with the DMA.

Best regards,

Simon