cancel
Showing results for 
Search instead for 
Did you mean: 

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

Gil1
Associate II

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

1 REPLY 1
MNapi
Senior III

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