Hi,
I tried to set up and use HPDMA with ADC on my Nucleo-H7S3L8,
but I have some questions about how to use it.
- I could not find documentation on using HPDMA with STM32 MCU, only for GPDMA.
- I found an HPDMA example for the Nucleo-H7S3L8 (ADC_SingleConversion_TriggerSW_HPDMA), but I don't get the logic. Why are both HAL_ADC_Start_DMA() and HAL_ADC_Start() used together? Normally, you'd just use HAL_ADC_Start_DMA(), right?
![prometheans152_0-1720659795732.png prometheans152_0-1720659795732.png](https://community.st.com/t5/image/serverpage/image-id/81793i7C7F577B8B1847B8/image-size/medium/is-moderation-mode/true?v=v2&px=400)
- Continuing from my previous question, if I want to modify this example to support multiple channels, Continuous Conversion Mode, and DMA circular mode, how should I do it?
I tried modifying the ADC parameters to Continuous Conversion Mode and DMA circular mode, but it still only runs once.
Then I tried enabling Circular Mode in HPDMA, but it gets stuck at HAL_ADC_Start_DMA.
- If possible, could you teach me how to modify it for multiple channels? I'm not sure whether to use End of single conversion or End of sequence of conversion. I have 9 channels.
I'm also not sure how to configure it with DMA.
Attached is the ADC_SingleConversion_TriggerSW_HPDMA example.