cancel
Showing results for 
Search instead for 
Did you mean: 

i'm trying to read 4 analog input by ADC using DMA and cubemx to make my code . the first two values is reading correctly but the others can't read them in any way . plz any idea

Halra.1
Associate II

0690X00000DXCO3QAP.png

1 ACCEPTED SOLUTION

Accepted Solutions
Imen GH
ST Employee

Hello,

I have made a test to check and I don’t have any problem, as shown in Figure (when using IAR)

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

             PA1 ------> ADC1_IN1

             PA4  ------> ADC1_IN4

             PB0  ------> ADC1_IN8

You will find attached my file STM32f7xx_hal_msp.c and main. c

0690X00000DYnLhQAL.png

Regards

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, as shown in Figure (when using IAR)

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

             PA1 ------> ADC1_IN1

             PA4  ------> ADC1_IN4

             PB0  ------> ADC1_IN8

You will find attached my file STM32f7xx_hal_msp.c and main. c

0690X00000DYnLhQAL.png

Regards

Imen GH
ST Employee

Here attached my file main.c

thank you very much.