VREFBUF Enable Problem
Hi,
I am working on STM32G474CET mcu. I am trying to use VREFBUFF voltage for ADC channel referance voltage. My configuration looks like the following.

When i run the code, it stuck in the HAL_SYSCFG_EnableVREFBUF function. Whenever i check the 'tickstart' variable it remains 0.
/**
* @brief Enable the Internal Voltage Reference buffer (VREFBUF).
* @retval HAL_OK/HAL_TIMEOUT
*/
HAL_StatusTypeDef HAL_SYSCFG_EnableVREFBUF(void)
{
uint32_t tickstart;
SET_BIT(VREFBUF->CSR, VREFBUF_CSR_ENVR);
/* Get Start Tick*/
tickstart = HAL_GetTick();
/* Wait for VRR bit */
while (READ_BIT(VREFBUF->CSR, VREFBUF_CSR_VRR) == 0x00U)
{
if ((HAL_GetTick() - tickstart) > VREFBUF_TIMEOUT_VALUE)
{
return HAL_TIMEOUT;
}
}
return HAL_OK;
}
When i try the same configuration on empty project, it worked fine. So i can see its not about hardware. What am i missing?
