2020-06-26 02:50 AM
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
2020-06-29 06:40 AM
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