4.1.3.1.15. CSL VTM Temperature Alert Example

This example application configures the high and low temperature warnings and prints the state on entering that state. It performs PVT sensor thermal alert test continuously while checking if the thresholds have been crossed and prints warnings.

4.1.3.1.15.1. Building VTM example

To build the VTM example app in PDK, use the following command:

$ make -s -j8 csl_vtm_pvt_sensor_temp_alert BOARD=<BOARD> CORE=<CORE>

The example app binary file can be found at the following location:

<pdk>/packages/ti/binary/csl_vtm_pvt_sensor_temp_alert/bin/<BOARD>/csl_vtm_pvt_sensor_temp_alert_<CORE>_release.xer5f

This command will build the VTM example app (csl_vtm_pvt_sensor_temp_alert) on baremetal. Adjust the command according to your specific requirements, such as selecting a different board or core if needed. By default, the release mode is built. You can specify build mode by adding BUILD_PROFILE=debug in the instruction.

4.1.3.1.15.2. Supported SOCs

  • j721e

  • j7200

  • j721s2

  • j784s4

4.1.3.1.15.3. Supported cores

  • mcu1_0

4.1.3.1.15.4. Hardware Connections

  • none

4.1.3.1.15.5. Running VTM example

After building the example, follow the given steps to run the test:

  • Launch a CCS debug session, load and run csl_vtm_pvt_sensor_temp_alert_<CORE>_release.xer5f binary file to the respective core for which the binary is built. Alternatively, the example application can be loaded using any other boot method such as MMC/SD.

  • Logs will be printed on the MCU UART port 1. Below is an example of the log when running csl_vtm_pvt_sensor_temp_alert on J721E on mcu1_0 core:

    Binary: <pdk>/packages/ti/binary/csl_vtm_pvt_sensor_temp_alert/bin/<BOARD>/csl_vtm_pvt_sensor_temp_alert_<CORE>_release.xer5f

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    VTM threshold test Application version 1.0.0.0 !!
    
    efuse 0  is : 0x0
    
                    efuse 1 is : 0x0
                    efuse 2  is : 0xfbbbc000
                    efuse 3  is : 0x1c1c1b
    
    N40 error is : 0
    
                            P30 error is : -34
                            P125 err  is : 0
                            P150 err  is : 0
    
                    sensor id                       : 0                 adc_code                        : 443                 temp in milli degree celcius    : 70016
                    sensor id                       : 1                 adc_code                        : 447                 temp in milli degree celcius    : 70873
                    sensor id                       : 2                 adc_code                        : 441                 temp in milli degree celcius    : 69586
                    sensor id                       : 3                 adc_code                        : 446                 temp in milli degree celcius    : 70659
                    sensor id                       : 4                 adc_code                        : 440                 temp in milli degree celcius    : 69371
    
    Threshold values programmed in milli degree celsius are
    
                        lt_thr0_val    : 71373            gt_thr1_val    : 73173            gt_thr2_val    : 74973
    
    0_temp: 71939  s1_temp: 71300 s2_temp: 71300  s3_temp: 71513  s4_temp: 71086
    
    
    got gtThr1 interrupt
    
    Crossed threshold 73173  System should take action to implement system cooling
    
    
    
    got ltThr0 interrupt
    
    System at a temperature below the threshold of 71373
    System running at a safe temperature
    s0_temp: 71513  s1_temp: 7 939 s2_temp: 71939  s3_temp: 71939  s4_temp: 70873
    
    
    got gtThr1 interrupt
    
    Crossed threshold 73173  System should take action to implement system cooling
    
    
    
    got ltThr0 interrupt
    
    System at a temperature below the threshold of 71373
    System running at a safe temperature
    513 s2_temp: 72364  s3_temp: 72151  s4_temp: 70659
    
    
    got gtThr1 interrupt
    
    Crossed threshold 73173  System should take action to implement system cooling
    
    
    
    got ltThr0 interrupt
    
    System at a temperature below the threshold of 71373
    System running at a safe temperature
    0_temp: 71513  s1_temp: 71939 s2_temp: 71300  s3_temp: 71939  s4_temp: 70659
    
    
    got gtThr1 interrupt
    
    Crossed threshold 73173  System should take action to implement system cooling
    
    
    
    got ltThr0 interrupt
    
    System at a temperature below the threshold of 71373
    System running at a safe temperature
    0_temp: 71086  s1_temp: 71939 s2_temp: 72151  s3_temp: 72576  s4_temp: 70873
    
    
    got gtThr1 interrupt
    
    Crossed threshold 73173  System should take action to implement system cooling
    
    
    
    got ltThr0 interrupt
    
    System at a temperature below the threshold of 71373
    System running at a safe temperature