Question
STM32L152D ADC with DMA not working
Posted on July 08, 2016 at 11:49
Hello everyone,
I am implementing some code forSTM32L152D-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,
Andreea
#!stm32-!cubemx #adc-dma