AnsweredAssumed Answered

Dual regular simultaneous mode ADC triggered from timer 4 using DMA1

Question asked by andrea capretti on Jun 26, 2018
Latest reply on Jun 29, 2018 by T J

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

Attachments

Outcomes