Imx6ul CPU Temp Sense

From embeddedTS Manuals
Revision as of 15:18, 30 December 2020 by Kris (talk | contribs) (Remove ADC, not documented in reference manual, good enough reason to remove it from our docs.)

The i.MX6UL CPU has an internal TEMPMON peripheral that is supported by Linux's Thermal Zone management. This sensor is embedded more toward the center of the die and therefore reads hotter than its ADC counterpart as it is meant to be reflective of the thermal state of the CPU for throttling control. This can be read similarly to the ADC counterpart above using sysfs (/sys). The following command returns the temperature in millicelsius:

cat /sys/class/thermal/thermal_zone0/temp