Skip to main content
STobo.1
Associate
March 7, 2020
Solved

STM32 ADC multiple channels HAL

  • March 7, 2020
  • 3 replies
  • 1992 views

Can some one tell me why this do not work?

I start to freak out -.-..........

I wish make 4 chanel adc with dma.

0690X00000DYubXQAT.jpg

Best Regards,

Szymon

This topic has been closed for replies.
Best answer by Imen GH

​

Hello,

I have made a test to check and I don’t have any problem.

I succeeded to read 4 analog inputs by ADC using DMA:

I used: PA0 ------> ADC1_IN0

            PA1 ------> ADC1_IN1

            PA2 ------> ADC1_IN2

            PA3  ------> ADC1_IN3

You will find attached my file main. c

3 replies

Imen GH
Imen GHBest answer
ST Employee
March 9, 2020

​

Hello,

I have made a test to check and I don’t have any problem.

I succeeded to read 4 analog inputs by ADC using DMA:

I used: PA0 ------> ADC1_IN0

            PA1 ------> ADC1_IN1

            PA2 ------> ADC1_IN2

            PA3  ------> ADC1_IN3

You will find attached my file main. c

Imen GH
ST Employee
March 9, 2020

Here attached my file STM32f7xx_hal_msp.c

STobo.1
STobo.1Author
Associate
March 12, 2020

Thx Ighor for answer :)

I really appreciate that.

& I already resolve that problem,

but I have another -.-,

can you check it?

https://community.st.com/s/question/0D53W000000a5HySAI/4ch-adc-records-on-sd-card