Skip to main content
Halra.1
Associate II
Feb 24, 2020 4:02 PM UTC
Solved

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

This topic has been closed for replies.
Imen GH
Imen GHBest answer
ST Employee
Mar 5, 2020 2:52 PM UTC

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

3 replies

Imen GH
Imen GHBest answer
ST Employee
Mar 5, 2020 2:52 PM UTC

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
Mar 5, 2020 3:02 PM UTC

Here attached my file main.c

Halra.1
Halra.1Author
Associate II
Mar 5, 2020 4:53 PM UTC

thank you very much.