cancel
Showing results for 
Search instead for 
Did you mean: 

[STM32CubeL4] ADC MultiMode: Regular simultaneous with Intependent DMA

gcrisa
Associate III

Which is the correct way to use the L4 HAL driver to start a conversion using two ADCs (ADC1 and ADC2) configured in "regular simultaneous multi-mode with independent injected" and MDMA disabled (MDMA=0b00)?

The HAL_ADCEx_MultiMode_Start_DMA() only supports a single DMA reading the common data register.

Using two intependent calls to HAL_ADC_Start_DMA() gives an error, because the ADC instances are configured in multi-mode.

Using HAL_ADCEx_MultiMode_Start_DMA() on the master and HAL_ADC_Start_DMA() on the slave won't work either, the slave start attempt returns with HAL_BUSY and, besides that, the master DMA would be set on the common data register...

Thanks

0 REPLIES 0