The reading of the internal temperature sensor with internal calibration parameters does not read a correct value.
On the STM32G071RB board, I tried to read the temperature using HAL-based conversion macros. At ambient temperature I get reading of 47 to 60 celsius depending on whether or not the HAL_ADCEx_Calibration_Start() is called to improve accuracy.
The macro I used are:
__LL_ADC_CALC_TEMPERATURE
__LL_ADC_CALC_VREFANALOG_VOLTAGE
Does anyone use those macros and get correct readings?
Can you guide me to solve the problem?
Where could I be wrong?
Thank you in advance.
Best regards
Luca