Skip to main content
Gil1
Associate II
May 10, 2023
Question

Not able to get multi-channel ADC continuous read with DMA to function

  • May 10, 2023
  • 1 reply
  • 1442 views

Using an STM32H757-EVAL (don't use CM4) with CubeMX. Configured my ADC1 as follows:


_legacyfs_online_stmicro_images_0693W00000bjjM0QAI.png 

DMA is:


_legacyfs_online_stmicro_images_0693W00000bjjMAQAY.png 

Start the process as follows (both calls return HAL_OK):


_legacyfs_online_stmicro_images_0693W00000bjjMFQAY.png 

I allow the code to run for 10 seconds and break. The m_hv_status_values buffer still has the initial values:

 

My expectation is that after the call to the HAL_ADC_Start_DMA, the ADC should scan all 6 channels continuously and put resulting conversions into the m_hv_status_values circular buffer sequentially. Any suggestions would be appreciated.

Gil

This topic has been closed for replies.

1 reply

MNapi
Senior II
May 10, 2023

I am not sure what you try but I see that you have multichanel form 1-6 See above End of Conversion Selection you setup end of single conversion instead of end of sequence conversion.

there are a few videos on you tube about multi-channel ADC look for it