7 years, 5 months ago.

stm internal temp sensor

Hello. I need to get temperature from internal temp sensor. Reading corresponding channel is not problem, but I duno how to enable temp sensor. I know how to do this directly, using cmsis, but they are visible from mbed layer( strange). Error: Identifier "ADC_TempSensorVrefintCmd" is undefined in "main.cpp", Line: 82, Col: 6 Same with direct register writing.

HAL_ADCEx_EnableVREFINTTempSensor() variant in neighbour topics is not variant too - HAL manual know nothing about it, mbed throw error.

Thanks

1 Answer

7 years, 5 months ago.

There are several examples on here. Here is one I posted https://developer.mbed.org/users/sixBase3/code/Nucleo_read_analog_value_intADCch/