Associate II
June 26, 2018
Question
Dual regular simultaneous mode ADC triggered from timer 4 using DMA1
- June 26, 2018
- 6 replies
- 3379 views
Posted on June 26, 2018 at 14:32
Hello all,
I have cube 4.25.1 installed and I'm using stm32f303 mcu.
What I have to do is to read 5 analog channels with ADC1 and 5 analog channel with ADC2 triggered from timer 4 counting.
I read application note An3116 and it said that it is possible to trigger simultaneus reading of sequence of channel.

I used the cube configuration attached:
than after the hardware inizialization is performed the instruction below:
HAL_ADC_Start(&hadc2);
HAL_ADCEx_MultiModeStart_DMA(&hadc1, (uint32_t*)adc_array, sizeof(adc_array));where adc_array is 32 bit array is a 5 item array.
Is there some error in the configuration or in the ADC start command?
Is there some software example using the new stm32 hal library?
Thanks
