STM32G031K8 ADC Vref INT
Hi, I am trying to measure the Vref+ voltage using the ADC on the STM32G031K8. I looked at the latest datasheet saying that the VREF CAL value is the memory adress given below.



So, when I run this code through the debugger,
1.) It gives me a hard fault handler on the dereferencing of the VREF_CAL pointer.
2.) When I remove the dereferencing code, the program runs without the hard fault handler.
Can anyone please explain this or assist with this problem ?. As the supply voltage in my application varies and an accurate ADC is of critical importance and safey.
Thanks,
Daniel

