In our STM32 the VREFINT (Voltage reference) is connected internally to an ADC channel.
I wrote a code to be able to read VREFINT using ADC.
The code reads the data and then convert it in mV unit depending on VREF+.
I ran the code on a Nucleo F767.
I read the following values: 1206 mV which is within spec:
I am attaching my code. It is using STM32Cube_FW_F7_V1.6.0.
To run the code copy and unzip it at:
I used Keil uVision 5 for IDE.