When I attempt to use a TASK and SEM in my project, main() is not entered. I can use either TASK or SEM and the code works fine. I have been able to get the example mutex project to work but can't in my project. Here's a portion of the .tcf file showing the ONLY changes that make this either work or not:
This works:
//bios.SEM.create("SEM0");
bios.TSK.create("TSK0");
bios.TSK.instance("TSK0").order = 2;
bios.TSK.instance("TSK0").fxn = prog.extern("task");
This works:
bios.SEM.create("SEM0");
//bios.TSK.create("TSK0");
//bios.TSK.instance("TSK0").order = 2;
//bios.TSK.instance("TSK0").fxn = prog.extern("task");
This does NOT work:
bios.SEM.create("SEM0");
bios.TSK.create("TSK0");
bios.TSK.instance("TSK0").order = 2;
bios.TSK.instance("TSK0").fxn = prog.extern("task");
Any help to resolve this would be greatly appreciated.
Regards,
Scott