This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[FAQ] TDA4VM: Measuring power consumption of the device

Part Number: TDA4VM
Other Parts Discussed in Thread: INA226,


what is the recommended way to measure power consumption of the device and can I get the power consumption for different components like the deep learning accelerators and the GPU?

Something like the tegrastats on NVIDIA jetson devices.



  • Hi Sampo,

    EVM User guide:

    Page 36: Table 4-7. INA Devices I2C Slave Address

    The EVM has 2 sets of 16 INA226 for measuring the 32 voltage rails. The Linux SDK has the INA226 device driver and Device tree nodes enabled.
    So you can use the sysfs interface of the hwmon to get the power numbers.

    Assumption: 8.1 RTOS SDK installed on SD card.

    You can switch between the two sets by controlling the gpio216 in the Linux. Boot to Linux command prompt on TDA4VM & execute the below commands:

    echo 216 > /sys/class/gpio/export
    echo out > /sys/class/gpio/gpio216/direction
    echo 0 > /sys/class/gpio/gpio216/value

    The script below gives the snapshot of the first set of 16 rails:

    Copy the script to /home/root folder of the target file system.

    cd /home/root

    The output 

    Toggle the gpio216 state to high to get the other set of 16 voltage rails:

    echo 1 > /sys/class/gpio/gpio216/value

    This will give the voltage/power measurements of all the 32 voltage rails.

    If no other questions then click on verify answer.

    Best Regards,