AnsweredAssumed Answered

STM32L152D ADC with DMA not working

Question asked by oltean.andreea on Jul 8, 2016
Latest reply on Jul 8, 2016 by baird.hal.001
Hello everyone,

I am implementing some code for STM32L152D-Eval Board using CubeMX; I set up one ADC channel (on pin PF10) with DMA transfer, but I don't get any data after starting the DMA:
HAL_ADC_Start_DMA(&hadc, (uint32_t*) pData, LENGTH)
The pData buffer is empty, there is no data in the ADC->DR register (but the ADONS bit is set, so the ADC is on).
I also set up the interrupts, the timers and the callback functions for the ADC.
What else do I need to care about?

Thank you, any idea would be very helpful!
Best regards,