Using Bios 6, I statically define three tasks:
/* preProcessing task */
var tsk1 = Task.create('&preProcessing_taskFxn');
tsk1.instance.name = "preProcessing_taskFxn";
tsk1.arg0 = MultiProc.getIdMeta ("HOST");
tsk1.stackSize = 0x2000;
tsk1.priority = 15;
//Notify semaphore for preProcessing
Program.global.preProcessing_sem = Sem.create(0, Sem_params);
/* corner task */
var tsk2 = Task.create('&findCorners_taskFxn');
tsk2.instance.name = "findCorners_taskFxn";
tsk2.arg0 = MultiProc.getIdMeta ("HOST");
tsk2.stackSize = 0x2000;
tsk2.priority = 15;
//Notify semaphore for corner finding
Program.global.findCorners_sem = Sem.create(0, Sem_params);
/* Ro task */
var tsk3 = Task.create('&calcRo_taskFxn');
tsk3.instance.name = "calcRo_taskFxn";
tsk3.arg0 = MultiProc.getIdMeta ("HOST");
tsk3.stackSize = 0x2000;
tsk3.priority = 15;
//Notify semaphore for calcRo
Program.global.calcRo_sem = Sem.create(0, Sem_params);
The first task, tsk1, runs and terminates and I would expect the second task, tsk2, to start up, yet this doesn't happen, instead the idle task starts up. What is wrong?
Lee Holeva