cancel
Showing results for 
Search instead for 
Did you mean: 

Only half the adcs channel manage to read their pins correctly

DLuss.1
Associate II

So, we are using ADCs on the STM32h743XIH6 rev V to read DC and low-frequency signals. We noticed we have half the ADC channels working correctly and half not working correctly. Those working correctly are:

ADC3P1 PC3_C

ADC2P1 PA1_C

ADC3P0 PC2_C

ADC3P2 PF9

ADC2P4 PC4

ADC2P0 PA0_C

and those not working are

ADC1P12 PC2

ADC2P5 PB1

ADC2P10 PC0

ADC1P2 PF11

ADC1P3 PA6

ADC3P3 PF7

ADC3P4 PF5

Note that we switched the signals from ADC1 to ADC2 on the signals not working and still would not read correct values. We are reading varying signals (even with dc signal in) with usually a low value around 0x9ff or 0x9df (on 16 bits reading). Good signals keep working when changing ADC too. The pins are working both in GPIO output and input correclty so we do not think it is a solder issue. We also probed the signal right by the processor and it stays clean.

Any idea what the problem could be? We ran out of ideas.

1 ACCEPTED SOLUTION

Accepted Solutions
DLuss.1
Associate II

Issue was with the Low-level driver generated by CubeMx, Switching to HAL cubeMx code generation solved the issue (with our user code interacting with adc staying LL).

note: GPIO, ADC and RCC (not sure this one matters, the other 2 for sure) drivers had to be changed to HAL

View solution in original post

3 REPLIES 3
DLuss.1
Associate II

Issue was with the Low-level driver generated by CubeMx, Switching to HAL cubeMx code generation solved the issue (with our user code interacting with adc staying LL).

note: GPIO, ADC and RCC (not sure this one matters, the other 2 for sure) drivers had to be changed to HAL

Hi @DLuss.1​ ,

Glad to know that your issue is already resolved.

But it will be helpful for us if you can share your .ioc file that can help us to reproduce the issue.

We need to deeply analyze it to identify the root cause: STM32CubeMX or the LL driver?

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

It is attached in the online support Case Number 00169037