Skip to main content
Halra.1
Associate II
February 24, 2020
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

  • February 24, 2020
  • 3 replies
  • 3344 views
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, 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
March 5, 2020

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
March 5, 2020

Here attached my file main.c

Halra.1
Halra.1Author
Associate II
March 5, 2020

thank you very much.