Reference Voltage always reads as 0xFFFF
I am using NUCLEO-U031R8 board and MCU is STM32UO31R8
while reding reference voltage by using below code
#define VREFINT_CAL_ADDR ((uint16_t*) (0x1FFF6EA4UL))
ADC1_COMMON->CCR |= ADC_CCR_VREFEN;
uint16_t Internal_voltage_reference = (uint16_t)*VREFINT_CAL_ADDR;
I am always getting 0xFFFF
what could be the issue?
Code formatting applied - please see How to insert source code for future reference.
