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.

CC2745R10-Q1: FreeRTOS - CPU load estimation - CCS tools?

Part Number: CC2745R10-Q1
Other Parts Discussed in Thread: SYSBIOS, SYSCONFIG

Tool/software:

Hello team,

My customer is trying to establish the suitability of CC2745 for a vehicle gateway application. While we implement the peripherals and the gateway feature, we want to keep track of CPU load (time not spent in the idle task). Is there a suggested way to do this using CCS tools like we had for SysBIOS in the past?

Regards,

Shashank

  • Hi Shashank, 

    Currently we don't have support for calculating the CPU Load in our SDK. Currently it is in backlog to add that feature. As a workaround we can calculate the time spent in idle task and subtract it from Total ticks and calculate the rough idea of CPU loading. I am working on the example to do that.

    Regards,

    Megh

  • Hi Shashank,

    As discussed please use this link to access the example for CPU loading. 
    https://tidrive.ext.ti.com/a/FKv7yaMr-8gGq_vT/2d500a4e-b6e1-4b53-94eb-eaefc729f80a?l
    Please follow below steps:

    1. In SysConfig.syscfg file make sure you disable the generated files for freeRTOSConfig.h and freeRTOSConfig.c
    2. In debug window in Expressions view please add below expressions.
       
      pxTaskStatusArray= Raw data for every task - (right click on it and increase the array size to no. of tasks to see all the tasks.) 

      ulTotalRunTime =     Represents (total timer ticks/100) elapsed since the timer started.

      pxTaskCPUUsageTable = total timer ticks for each tasks and percentage based on that. 

    Regards,

    Megh