Mohammed,
I tweaked around with a TI-RTOS example to enable CPU load logging with UIA. I've attached a .cfg file that worked for me with my example. In my example, I had only one task going to sleep every 10ms.
(Please visit the site to view this file)
Here were a few things that I found I had to change to get the CPU load to show up in the LoggingSetup.
- The Power module removed (disabled)
- The Task module needs to have the Idle task enabled (default)
- I used the following BIOS setup. Note that I have BIOS logs enabled.
var BIOS = xdc.useModule('ti.sysbios.BIOS'); BIOS.libType = BIOS.LibType_Custom; BIOS.swiEnabled = false; BIOS.logsEnabled = true; BIOS.assertsEnabled = false;
- I used the following LoggingSetup to show the CPU load. Note that I have loadLogging = true.
var LoggingSetup = xdc.useModule('ti.uia.sysbios.LoggingSetup'); LoggingSetup.loadLogging = true; LoggingSetup.sysbiosTaskLogging = false; LoggingSetup.sysbiosTaskLoggingRuntimeControl = false;
Note that a lot of these settings can be configured using the graphical LoggingSetup pages.
I'd also suggest to check ROV's Load module and see that you are getting a decent CPU load there before you try displaying the CPU load values in the Live Logs or the CPU graph.