Measure Circuit returns wrong value after connect to G4 chip
I am using the STM32 G431RBT6 chip. There is a circuit for measuring voltage, current, and other parameters.
When the circuit is not connected to the chip, the voltage divider works perfectly. However, when the circuit is connected to the chip (with the code uploaded), the voltage readings are incorrect (for example, 50V reads as 40V), and this issue occurs inconsistently across channels.
It is important to note that this discrepancy is not due to incorrect ADC results, but the voltage divider output itself is incorrect. The ADC channels are configured with no pull.
What could be causing this issue, and how can I resolve it?
