STM32F0 ADC reads wrong values
For calibrating with internal VREF you would need to post your code.

For the case without calibration it might actually be the input impedance - the MCU ADC has input impedance of around 50k which might be too low in the case of your divider - try buffering the measured voltage and measuring it again.