wrong ADC DMA Continous conversion data order
Hi,
I cannot understand acquired ADC data order using this configuration on a STM32G030C6 device:

I want to acquire 9 input channels + 2 internal channels (Temperature Sensor + Vbat). Continuous mode w/ Circular DMA

Here's my Initialization routine
static uint32_t adc_values[11];
HAL_ADCEx_Calibration_Start(&hadc1);
// DMA continous requests: ENABLED
HAL_ADC_Start_DMA(&hadc1, adc_values, 11);
Everything works as expected except the channels order.
- adc_values[0] ---> OK
- adc_values[1] ---> OK
- adc_values[2] ---> OK
- adc_values[3] ---> OK
- adc_values[4] ---> OK
- adc_values[5] ---> KO This should be (afaik) the internal temperature sensor channel but I see the IN8 adc value.
- adc_values[6] ---> KO This should be (afaik) the IN8 channel but I see the IN9 channel.
- adc_values[7] ---> KO Does not match either.
- adc_values[8] ---> KO Does not match either.
- adc_values[9] ---> KO Does not match either.
- adc_values[10] ---> KO Does not match either.
Does anyone know what the problem is?
I'm not able to find any example with similar configuration.
Thanks in advance,
Gaston


