Skip to main content
Visitor II
September 17, 2020
Question

[STM32CubeL4] ADC MultiMode: Regular simultaneous with Intependent DMA

  • September 17, 2020
  • 0 replies
  • 516 views

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

    This topic has been closed for replies.