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.

Static Task Startup

Other Parts Discussed in Thread: SYSBIOS

Hi,

What causes a statically defined task to startup?  Do all statically defined tasks automatically get kicked off at startup?  I have the following statically defined task:

var taskParams2 = new ti_sysbios_knl_Task.Params();

taskParams2.instance.name = "USBProcToDSPSM";

taskParams2.priority = 1;

taskParams2.vitalTaskFlag = false;

Program.global.USBProcToDSPSM = ti_sysbios_knl_Task.create("&usb_proc_sm_task", taskParams2);

and I have a breakpoint at the start of this task.  The breakpoint never gets hit.  How do I get this task to start?  Thank you.

  • Hi Peter,

    There could be a couple reasons that your task is not running

    - Forgot to call BIOS_start() at the end of main(). Note: BIOS_start never returns...it basically turns into the scheduler.

    - Another higher priority thread (Hwi, Swi or Task) is running and never allows a lower priority Task to run

    - You've disabled something (e.g. Swi_disable or Task_disable) and did not restore/enable them.

    - You have Task hook functions with logic errors

    - You've blocked the Task (i.e. Task_block(handle)).

    Todd