DMA issues for injected channel in ADC multimode
- July 11, 2017
- 3 replies
- 1646 views
Dear community,
I have some issues to make my STM32F446 work properly.
I would like to use ''triple combined regular simultaneous + injected simultaneous mode''.
The aim is to use the 3 ADCs, each measuring 1 regular and 1 injected channel, and use the DMA to directly transfer them to the memory.
I configured the cube as folllows:


I manage to get the regular channel writting in the main:
HAL_ADC_Start_DMA(&hadc3,(
uint32_t
*) ADCReads3, 2);
HAL_ADC_Start_DMA(&hadc2,(
uint32_t
*) ADCReads2, 1);
HAL_ADCEx_MultiModeStart_DMA(&hadc1, (
uint32_t
*)ADCReads1, 1);
However I can't manage to get the injected channels since:
HAL_ADCEx_InjectedStart_DMA(&hadc1,(
uint32_t
*)ADCReads1, 1);
is not accepted.
Could you please help me to solve this issue?
Many thanks
#injected #regular #adc #dma #multimode