Solved
Can't get reasonable values from the internal temperature sensor in nucleo-g474re board.
#define TEMP110_CAL_VALUE ((uint16_t*)((uint32_t)0x1FFF75CA))
#define TEMP30_CAL_VALUE ((uint16_t*)((uint32_t)0x1FFF75A8))
#define TEMP110 110.0f
#define TEMP30 30.0fI am using these calibration values as I found them in the datasheet
For the conversion:
temperature = (int32_t)((TEMP110 - TEMP30) / ((float)(*TEMP110_CAL_VALUE) - (float)(*TEMP30_CAL_VALUE)) * (adcvalue - (float)(*TEMP30_CAL_VALUE)) + TEMP30);I also used:
temperature=__LL_ADC_CALC_TEMPERATURE(VDDA_APPLI,AdcVals[0],LL_ADC_RESOLUTION_12B);The values I get is 700-800 on the ADC value, which I think is a reasonable value but when converting the temperature is with a minus sign