Skip to main content
RichardS1
Associate II
October 9, 2017
Question

STM32F334 HAL DMA ADC Scan conversion not working

  • October 9, 2017
  • 1 reply
  • 1187 views
Posted on October 09, 2017 at 20:26

Hello. 

In my project, I use the ADC configured in scan mode, as seen on this screenshot from STM32CubeMX:

0690X00000608XgQAI.png

and the DMA configured as follows:

0690X00000608XRQAY.png

The problem is that I can't get any data transferred from ADC to memory, when I call

volatile uint32_t ADC1ConvertedValues[2];

HAL_ADC_Start_DMA(&hadc1, (uint32_t*)ADC1ConvertedValues, 2);

When I open the peripheral view on Keil uVision I can see that the ADC is working properly and the conversions are happening.

Can you tell me where's the problem?

#stm32f344 #adc #dma-adc
This topic has been closed for replies.

1 reply

RichardS1
RichardS1Author
Associate II
October 10, 2017
Posted on October 10, 2017 at 21:41

Bump

Tesla DeLorean
Guru
October 10, 2017
Posted on October 10, 2017 at 22:33

Wouldn't the samples be uint16_t ? (HALF WORD)

Is the DMA peripheral indicating an error?

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..