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.

AM3352: Module load API's usage

Part Number: AM3352
Other Parts Discussed in Thread: SYSBIOS

Hi!

Now in my project,I want to calculate the CPU load,Hwi load,task load and so on.So I refered to the SYS/BIOS manual,I found that the API functions in the module Load of SYS/BIOS.But the manual only say that I can use the runtime API,as the screenshot I post,and I don't how to use the API in my project.Would you show me how to use the runtime APIs of the Load? Are there some demos?

The SYS/BIOS I used is bios_6_75_02_00.

Than you!

  • Hi,

    There is detailed documentation available for the Load module here: <BIOS>/docs/cdoc/ti/sysbios/utils/Load.html.

    I'm unaware of any AM335x examples (SYS/BIOS or PDK) which use Load module functions.

    Regards,
    Frank

     

  • Part Number: AM3352

    Hi!

    Now I encounter a confused question.I need to calculate the CPU load in my project,I use the Load module runtime APIs:Load_getCPULoad() in the ti\sysbios\utils\Load.c.

    In the main.cfg file,I add: "Idle.idleFxns[0] = "&write_nv_items";".When the idle task is running,the write_nv_items() function which I written is called.The question is:when I add Task_sleep() in the function write_nv_items(),the CPU load is 100,and when I delete Task_sleep(),the CPU load is about 53.This confue me,I want to know why Task_sleep() affect the CPU load calculate.The SYS/BIOS is bios_6_75_02_00.

    Thank you!

  • Hi,

    Task_sleep() shouldn't be called from an IDLE task. This is documented in <BIOS>/docs/cdoc/ti/sysbios/knl/Task.html, Task_sleep():

    Task_sleep should not be called from within an Idle function. Doing so prevents analysis tools from gathering run-time information.

    Regards,
    Frank