I have 3 tasks I am trying to get running. I have the initial task (0) which runs and calls os_create_task for task 1 and 2. If I leave a while(1) loop in task 0, it runs as I expect, however, the other tasks don't run at all. I have an os_wait(K_TMO, 100, 0) in all three tasks. If I delete and exit task 0, nothing runs.
I have read the other posts about this topic, but they did not help me resolve my problem.
Any help is appreciated.
Thanks.
Anthony; Need more information. Do you have the RTX51TNY OS selected under Options->Target? Do you have rtx51tny.h in your #includes? Have you tried to run any of the Keil examples that have RTX51TNY as their OS? EACH task must have a forever loop such as your while(1). Otherwise they will run one time only and you probably would not see their action. Check these items and give us a little more info or maybe a bit of code segments to review. Under ..../C51/RTXTINY2.EXAMPLES/EX2/RTX_EX2 is a complete example much like you described in your post. Are you trying to run on a target board or the simulator? Bradford
Sorry. Yes, I have everything set up correctly. I am able to get task 0 called.
Are you trying to run on a target board or the simulator?
Task 0 is called via RTX. It is your main() for this application.
If you are using the simulator, open the RTX-Tiny Task List to monitor the conditions of your tasks.
Tell us what you see in the Task List.
Can you run the posted example code?
View all questions in Keil forum