HI @Mario Luzeiro
On Linux side, you have to use the Digital junction Temperature Sensor (https://wiki.st.com/stm32mpu/wiki/DTS_internal_peripheral)
You could use this standard Linux command:
- cat cat /sys/class/thermal/thermal_zone0/temp
Result to be divided by 1000 for a temperature value in °C
The analog ADC junction temperature sensor input has been kept for legacy and could be used by Cortex-M4 HAL if needed.
As there is two different sensors (DTS and ADC one) at two different locations and calibrated differently, please expect few degrees of difference.
The Digital internal Temperature Sensors is usually used for informing/protecting the system from overheating.
Regards,
In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'
In order to give better visibility on the answered topics, please click on 'Best Answer' on the reply which solved your issue or answered your question.Tip of the day: Try Sidekick STM32 AI agent