2022-06-18 12:44 PM
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.
2022-06-20 07:17 AM
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