cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP157C-DK2 usa ADC DMA

MZopp.1
Associate

Hi,

i try to use a ADM DMA with the board in object.

I generate the code with CUBE MX and i add only the function HAL_ADC_Start_DMA(&hadc1, (uint32_t*)&buff, 1); before the while loop in the main.

After i start the ADC, the hadc1.State remains in HAL_ADC_STATE_REG_BUSY and the DMA2_Stream0_IRQHandler never happens.

I attach the .ioc file of the project.

Someone can help me?

Thanks a lot

1 REPLY 1
mleo
Senior II

Hello @MZopp.1​ ,

as a very first step, did you try ADC_SingleConversion_TriggerTimer_DMA example from STM32Cube_FW_MP1_V1.2.0?

Even thouh DMA not in requested circular mode, should not be difficult to modify when made functional.

Hope this help you continue.

Best regards,

Milan