Why are STM32L451VETx internal temperature sensor readings too low?
Hi, I'm using the STM32L451VETx and I'm configuring the ADC to read from the internal temperature sensor however the readings are lower than expected. Typical readings at around 21 degrees Celsius are only 3 degrees Celsius. I can see some change in the temperature if I apply cold or heat to the IC so I believe it's sensing temperature. I'm using the HAL macro "__HAL_ADC_CALC_TEMPERATURE". I have the ADC configured to scan 5 channels into DMA, the other channels that I'm reading are all correct. I noticed also that changing the sampling time for the temperature sensor changes the ADC reading but none of the available options work to produce accurate temperature readings. All of the ADC config is done through CubeMX. Any suggestions for what I may be doing wrong?
Thanks,
Doug Burrell