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.

[TM4C129x, TI-RTOS, UIA] CPU load graph show nothing.

Other Parts Discussed in Thread: SYSBIOS

Hello,

I'm using DK-TM4C129X with TI-RTOS ver 2_10_01_38.

I'm working with USB CDC (serial) Example and works correctly.
Now I have added some Log_print/Log_info APIs to the sample code and tried to see if these logs can be referred from UIA windows. And I got success.
But as for CPU load, nothing shows up.

Do you have any suggestions ?
I have attached cfg file for your reference.

0647.usbserialdevice.cfg


Best Regards,
Kawada

  • Hi Kawada,

    You have this line in your configuration file:

    /* Remove the Idle Task */
    Task.enableIdleTask = false;

    Can you try removing it?  The idle task is needed for CPU load calculation.

    Best regards,

        Janet

  • Hello Janet, 

    Thanks for your reply.
    I tried your suggestion, but unfortunately, it did not help.

    I intentionally enabled an Idle task and I've confirmed the control come to myIdleFunc.
    This implies idle task is working in system.

    ========== Added to the following scripts to cfg file ============

    var Idle = xdc.useModule('ti.sysbios.knl.Idle');
    Idle.addFunc('&myIdleFunc'); // add myIdleFunc()

    Task.enableIdleTask = true;

    ====================================================

    However, CPU load graph showed nothing. As for the logs, it seems ok.

    Any other suggestions ?

    Best Regards,
    Kawada

  • There's another problem that may be causing the CPU load graph to not display any data.  Can you try removing the following line from your .cfg:

    BIOS.logsEnabled = false;

    If you are still not seeing any data after that, check the Live Session window in RTOS Analyzer for CPU log data.  If the CPU load is 0%, the CPU load graph doesn't show the CPU load line, even though it says it is showing a number of records.

    Best regards,

        Janet

  • Hello Janet, 

    Thanks for your reply. I got success with your suggestions. 
    Now Cpu/Task load appears.
    Execution graph looks working also and I saw the Hwi instances behavior in the graph.
    But I could not see Task instances in execution graph... If you have any idea, please let me know.

    Thank you.
    Kawada

  • Hi Kawada,

    With the fixes you made to the original .cfg file (enabling BIOS logging, idle task), I don't see any reason for not getting Tasks displayed in the execution graph. Just make sure you have not disabled Task logging in your .cfg file by setting:

    LoggingSetup.sysbiosTaskLogging = false;

    Can you try disabling Hwi logging to see if the tasks show up in the execution graph?  Maybe there are too many Hwi events filling the Log buffer.  You can also compare your .cfg file with the stairstep example .cfg file (under Instrumentation Examples in the CCS Resource Explorer).

    Best regards,

        Janet

  • Hello Janet,

    Thank you for your response again. Today I'm out of office so I'll check and update you on next week.

    Best Regards

    Kawada

  • Hi Janet, 

    Yes, I have disabled Tasklogging in my configuration file.

    I tried you suggestion to disable Hwi logging :

    LoggingSetup.sysbiosHwiLogging = false;

    And now I can see the Task instances in execution graph! Looks like your suspicion was correct.

    Thanks for your help.
    I close this thread.

    Best Regards,
    Naoki Kawada