TI VTM temperature sensor

Browse source code on GitHub

Overview

This sample continuously reads the die temperature reported by a TI VTM (Voltage and Thermal Manager) sensor instance. On startup it also arms all three threshold triggers (cold, hot, critical) a few degrees away from the current temperature and registers a handler for each, so that heating up or cooling down the SoC during the demo will fire the corresponding interrupt.

Building and Running

Enable a TI VTM sensor child node and use the label sensor0 for it.

west build -b am62l_evm/am62l3/a53 samples/sensor/ti_vtm
west flash

Sample Output

VTM temperature: 42.12 C
Armed threshold at 37.12 C
Armed threshold at 45.12 C
Armed threshold at 50.12 C
VTM temperature: 42.31 C
VTM temperature: 42.50 C
[TH1] hot threshold crossed
VTM temperature: 45.62 C

See also

Sensor