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.

PROCESSOR-SDK-AM64X: SDK example to measure the on-die temperature through VTM?

Part Number: PROCESSOR-SDK-AM64X

Hello,

Some processor SDKs (e.g., https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/07_03_00_07/exports/docs/pdk_jacinto_07_03_00_29/docs/userguide/jacinto/modules/csl.html) include in the chip support library an example to access the VTM module. My customer want to access the AM64x on-die temperature measurement for benchmarking purposes. Do we have any example for that? It could be bare-metal, OS, Linux, and R5F (or A53 for Linux). Thank you.


Best regards,
François.

  • Hi Francois,

    This is a new requirement for the MCU+ SDK. I have moved the question to MCU team.

    Thanks

  • François,

    I've attached a Linux script to read and print the temp sensors. Also as an alternative here is the couple memory writes and reads with a description in case it is simpler to use or port to the preferred environment and put the printouts in the xls.

    #To set WKUP_VTM_MISC_CTRL2 registers for the 2 VTMs to continuous mode:
    
    devmem2 0x00b01300 w 0x00000050
    
    devmem2 0x00b01320 w 0x00000050
    
    #Then to read the value from WKUP_VTM_TMPSENS_STAT registers:
    
    devmem2 0x00b00308
    
    #will print out something like 0x00080154, take only the low 10-bits (0x154)
    
    devmem2 0x00b00328
    
    #will print out something like 0x00080954, take only the low 10-bits (0x154)
    
    # The 10bit output (low 0x3FF bits) needs to fed into the polynomial AM64 TRM 5.2.2.1.4.2.1.1
    # to get output in Celcius. Also have it in the Excel sheet AM64x VTM.xlsx.
    # On my desk I get <50C . Accuracy is maybe +-10C without characterization.

    AM64x VTM.xlsx

    am64_vtm_temp.sh

      Pekka

  • Hi Pekka,

    Thank you very much!

    Best regards,
    François.