ADC_VRef in STM32L431RBT6
I'm trying to use the internal reference voltage of 2.048V in my application, since I'm powering the microcontroller with 2.8V. But when I select the reference source and enable the VRefBuff with this lines:
HAL_SYSCFG_VREFBUF_VoltageScalingConfig(SYSCFG_VREFBUF_VOLTAGE_SCALE0);
HAL_SYSCFG_VREFBUF_HighImpedanceConfig(SYSCFG_VREFBUF_HIGH_IMPEDANCE_DISABLE);
if (HAL_SYSCFG_EnableVREFBUF() != HAL_OK)
{
Error_Handler();
}the microcontroller will go directly to the error handler. Is this because in this package the VRef is bonded to VDDA? meaning I will only be able to use VDDA as reference in this chip?
