cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7 HAL_ADC_DMA_Start function's not working properly

IBeRyUS
Associate

HAL_ADC_DMA_STOP() function stops and disables ADC resources. It also disables DMNGT bits to 00 value to prevent any extra DMA request during STOP process which is normal.

But HAL_ADC_DMA_Start() function doesn't set proper DMNGT bits back. They only set by ADC_Init() function. Start funtion can easily restore DMNGT bits by Init.ConversionDataManagement value. After Stopping and enabling ADC DMA I have to set DMNGT bits to DMA to have proper functionality.

0 REPLIES 0