Keil Logo

RTX51 TINY: Task 0 Runs but Other Tasks Don't


Information in this article applies to:

  • C51 All Versions

QUESTION

I have created an RTX51 Tiny program that works fine with round-robin. However, with round-robin disabled, only task 0 executes. What's going on?

ANSWER

In order for RTX51 Tiny to switch tasks, each task in your program MUST call os_wait. For example:

while (1)
  {
  .
  .
  .
  os_wait (K_TMO, 5, 0);
  .
  .
  .
  }

If you have a task that does not call os_wait, when that task starts, it will run forever and never allow other tasks to start.

MORE INFORMATION


Last Reviewed: Thursday, February 25, 2021


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.