2025-05-07 12:30 AM - last edited on 2025-05-07 1:45 AM by Andrew Neil
Hello Community,
I’m working on a custom board using the STM32G474VET3 MCU and encountering an issue with the ADC readings. I’m consistently getting a raw value of 4095 on all the ADC channels I’m using. It seems like something might be misconfigured, but I haven’t been able to pinpoint the cause.
Any insights or suggestions would be greatly appreciated.
Thank you!
Solved! Go to Solution.
2025-05-07 5:40 AM
Sounds like VREF+ might not be connected. 18 replies in this thread and still no schematic that includes this pin.
2025-05-07 5:57 AM
I am providing +3V3DC to analog pin for Vref based on datasheet its and output pin.
2025-05-07 5:58 AM
I am providing +3V3DC to analog pin for Vref based on datasheet its and output pin.
2025-05-07 6:05 AM
I think if you update this circuit by connection VREF+ also to 3V3 as VDDA, ADC will work correctly.
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.
2025-05-07 6:36 AM
VREF+ needs to be powered. Connect it to VDDA.
2025-05-07 7:45 AM
@harshpanchal_6 Note that everyone can see all replies - there's no need to repeat the same thing in reply to different people.
You can use '@' to mention people ...
@harshpanchal_6 wrote:I am providing +3V3DC to analog pin for Vref based
No, your schematic shows that you are not providing any supply at all to Vref.
This is why it is so important that you show your full schematic in your first post.
It shouldn't have taken 20 posts to get here!
Thank you for marking the solution - don't forget to also do that in your previous posts...