'Can't Measure voltage of battery for solar power system

I want to measure the voltage battery by ADC of STM32F103C8T6 using resistor divider. When the system starts, the value from STM32 is 6.35V but when the voltage battery reaches 6.45V the value of STM32 doesn't change. I don't know about that. Please help me. Thank you so much.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source