cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 ADC multiple channels HAL

STobo.1
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
Imen GH
ST Employee

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

View solution in original post

3 REPLIES 3
Imen GH
ST Employee

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

Here attached my file STM32f7xx_hal_msp.c

STobo.1
Associate II

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