How do use internal temperature sensor?
On STM32MP1, how to use the internal temperature sensor, ADC2_INP12 and internal factory calibration?
Any example?
Is it possible to access these data via A7 or just on M4 ?
On STM32MP1, how to use the internal temperature sensor, ADC2_INP12 and internal factory calibration?
Any example?
Is it possible to access these data via A7 or just on M4 ?
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:
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'
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.