Problem with ADC Vrefint monitoring.
Hello. A have my custom board with STM32G431CBU microcontroller. Power domain on my board are shown in the picture:
I want to measure the voltage on Vref+ pin. The analog domain settings of CubeMX are:

The code for single ADC acquisition:
HAL_ADC_Start(&hadc1);
osDelay(1000);
ADC_Data[0] = hadc1.Instance->DR;
Vbat = ((float) __HAL_ADC_CALC_VREFANALOG_VOLTAGE(ADC_Data[0], ADC_RESOLUTION_12B)) / 1000;And it works, but the value of calculated Vbat is more then real value that i have measured by multimeter. The value of measuring error have direct dependency of measuring voltage:
real Vref+_______measured Vref+
2.2______________2.30
3.3______________3.45
I tryed to set VREFBUF mode to "External reference", but this does not change anything. On both ("External reference" and "Disable") options the value of VREFBUF_CSR register is 0x2.
I would be grateful if you can help me figure it out.
