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.

Current load of each core

Other Parts Discussed in Thread: TMS320C6678, SYSBIOS

Good day, dear friends.

We use Code Composer 5.5 and DSP - TMS320C6678. In our system we start any dsp algorithms of the different complexity on each core of this dsp. I need to know current load of each core. In other words I need to know how many tasks I can start on the one core. 

Does Code Composer have those instruments ????

Or maybe SysBios has any functions that may give me this information ????

  • Any help would be appreciated.

  • Hi Oleg,

    Sorry for the delayed response.

    You can add the BIOS load module & instrumentation to your applications & view the CPU load using System Analyzer (part of CCS).  To add CPU load logging you need to add the following to your *.cfg file:

    var Load = xdc.useModule('ti.sysbios.utils.Load');
    Load.swiEnabled = true;
    Load.hwiEnabled = true;
    
    var LoggingSetup = xdc.useModule('ti.uia.sysbios.LoggingSetup');
    
    /* Enable CPU Load logging */
    LoggingSetup.loadLogging = true;
    
    /*
     *  Enable Task, Swi, and Hwi Load logging. This allows the Idle Task
     *  usage to make more sense. Otherwise Hwi and Swi load is factored into
     *  each task's usage.
     */
    LoggingSetup.loadTaskLogging = true;
    LoggingSetup.loadSwiLogging = true;
    LoggingSetup.loadHwiLogging = true;
    LoggingSetup.loggerType = LoggingSetup.LoggerType_JTAGRUNMODE;

    There are several logger types available, so please take a look at the logging setup wiki for more details.  All of these settings can be set by the graphical config tool as well (UIA->LoggingSetup & BIOS->CPU Load).  After all this has been setup, you can view CPU load graphs using System Analyzer (wiki).

    Hope this helps,

    -- Emmanuel

  • Emmanuel. Many thanks. I will try your solution.