cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Multiple ADCs and DMA Configuration on STM32G474RET6

Sankar_1
Associate II


Hello,

I am using multiple ADCs (ADC1, ADC2, ADC4, and ADC5) on my STM32 device. My configuration is as follows:

ADC1: Configured with injected mode and triggered by an external event.
ADC2, ADC4, and ADC5: Configured to operate in DMA mode for regular conversions.
The issue I am facing is that only one ADC seems to be working or reading values correctly at a time. The other ADCs do not appear to function as expected.

I would like to know:

Is it possible to use multiple ADCs with DMA mode on an STM32G474RET6 device?
If it is possible, are there any specific configurations or considerations required to ensure all ADCs work simultaneously without conflicts?

Regards

Pandi M

1 REPLY 1
Sarra.S
ST Employee

Hello @Sankar_1

You have to: 

  1. Ensure that conversions by different ADC instances do not occur concurrently. This can be achieved through
    trigger sequencing by the application software.
  2.  Use the same clock source for all ADC instances running concurrent conversions and set the clock prescaler
    division ratio to one (no division).
  3. With synchronous clock and the clock prescaler division ratio equal to or greater than two, use the same clock
    configuration for the concurrently converting ADC instances. Furthermore, trigger them with the same timer
    using the same clock prescaler division ratio (or its integer multiple) as the ADC prescaler.

Please be aware of this product errata: An ADC instance may impact the accuracy of another ADC instance at specific conditions

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.