Skip to main content
MZopp.1
Associate
June 26, 2020
Question

STM32MP157C-DK2 usa ADC DMA

  • June 26, 2020
  • 1 reply
  • 928 views

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

This topic has been closed for replies.

1 reply

mleo
Visitor II
June 29, 2020

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