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.

How to use Load_getCPULoad() in TI-RTOS driver program?

Other Parts Discussed in Thread: SYSBIOS

Hi

I am trying to use Load_getCPULoad() routine, to measure CPU load, as in uartConsole example, but, until now, unsuccessfully.

My program is a driver program under TI-RTOS 2.10.1.38.

I copied the file Load.c into my program, plus the Load.h header, but, linker still complaining of absent modules:

undefined symbol:  ti_sysbios_utils_Load_Module__state__V

Perhaps I need to include more header files.

Can someone guide me in this task?

Thanks

Sergio

  • Sergio,

    I think the problem is that you need to include the Load module into your application configuration.  You can try adding this to your application’s .cfg file:

    var Load = xdc.useModule('ti.sysbios.utils.Load');

    You do need to include Load.h in the C file where you are calling Load_getCPULoad().  But you should not include Load.c into your program sources.  This will be pulled into the build automatically once you “use” the module as described above.

    Scott

  • Hi Scott

    It worked.

    Thank you very much.

    Sergio