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.

TSK_ and GT_ trace

I have two tasks created in my server.tcf file:

bios.enableTskManager(prog);
bios.TSK.create("TSK_collect");
bios.TSK.instance("TSK_collect").order = 1;

bios.TSK.instance("TSK_collect").fxn = prog.extern("FXN_collect");

bios.MBX.create("MBX_collect");

bios.MBX.instance("MBX_collect").messageSize = 2000;
bios.MBX.instance("MBX_collect").length = 10;

The prototype for FXN_collect is

FXN_collect(MBX_Handle mbx)

I have a GT_1trace statement in FXN_collect that is supposed to print the mbx value. I never see the trace output, although I see other GT_ trace output (with the same mask, etc.) This makes me think that the task has not actually been started by the TSK_create. Do I need to call TSK_start from main? Or do something else to start the task? Have I specified the task incorrectly? (Right now, the FXN_collect function performs the GT_1trace statement and then sits in a TSK_sleep(10) loop. I've tried TSK_sleep(1) also.)