STM32L100RC temperature sensor
Does the STM32L100RC have a temperature sensor?
RM0038 refers to the temperature sensor in the STM32L1 line of processors. However, the STM32L100RC datasheet only mentions "tempsensor" in table 4 and nothing else anywhere. CubeIDE will allow the temperature sensor ADC channel to be selected but apparently no code is generated. There's a macro in stm32l1xx_ll_adc.h , __LL_ADC_CALC_TEMPERATURE_TYP_PARAMS(), for converting the value to celsius but it requires parameters from the datasheet that don't exist: avg_slope and V110. These parameters exist in other datasheets, however.
The comment near the macro sure seems to imply that the processor has the sensor, just not the cal constants:
/* Note: On device STM32L100, calibration parameters TS_CAL1 and TS_CAL2 are not available. */
/* Therefore, helper macro __LL_ADC_CALC_TEMPERATURE() is not available.*/
/* Use helper macro @ref __LL_ADC_CALC_TEMPERATURE_TYP_PARAMS(). */
/*
* __TEMPSENSOR_TYP_AVGSLOPE__ Device datasheet data: Temperature sensor slope typical value (unit: uV/DegCelsius).
* On STM32L1, refer to device datasheet parameter "Avg_Slope".
* __TEMPSENSOR_TYP_CALX_V__ Device datasheet data: Temperature sensor voltage typical value (at temperature and Vref+ defined in parameters below) (unit: mV).
* On STM32L1, refer to device datasheet parameter "V110" (corresponding to TS_CAL2).
* __TEMPSENSOR_CALX_TEMP__ Device datasheet data: Temperature at which temperature sensor voltage (see parameter above) is corresponding (unit: mV)
*/
