2026-05-21 4:03 AM
Hello Community,
I am working on a custom board using the STM32 MCU (STM32WLE5JCI6). I am configuring the ADC with two channels:
I performed the following test cases and observed unexpected ADC behavior.
Observation:
Both ADC channels are reading 4095, even though Channel 5 is tied to GND.
Observation:
Instead of getting 4095 on Channel 5, both channels are reading approximately 1500.
I am also facing the same issue with another MCU: STM32L071KBT6TR.
Development tools being used:
I have attached the main source file containing the ADC configuration for reference.
Could anyone please help identify what might be causing this issue?
Awaiting your valuable suggestions.
Thanks.
2026-05-21 4:53 AM
Welcome to the forum.
@shafin388 wrote:I am working on a custom board
In that case, you need to post the schematic - see:
How to write your question to maximize your chances to find a solution