Skip to main content
Associate II
January 23, 2025
Question

Issue with Multiple ADCs and DMA Configuration on STM32G474RET6

  • January 23, 2025
  • 1 reply
  • 531 views


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

ST Employee
January 24, 2025

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