[STM32CubeL4] ADC MultiMode: Regular simultaneous with Intependent DMA
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-09-17 5:49 AM
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
Labels:
- Labels:
-
ADC
-
DMA
-
STM32Cube MCU Packages
-
STM32L4 series
This discussion is locked. Please start a new topic to ask your question.
0 REPLIES 0
