Solved
Unable to read ADC properly using STM32L073VZI6
Hello,
I am using STM32L073VZI6 in a custom board, trying to read ADC values from a potentiometer connected to PA6. The microcontroller and the potentiometer are powered with 3.3 V.
The issue is that I get 4095 when the voltage input is less than 2 V. From 2 V to 3.3 V still I get 4095. Below are the configuration and the code. I have tried already many combinations without success.

Any help will be much appreciated.
