Keil Logo

RTX51 TINY: TASKS NEVER START


Information in this article applies to:

  • RTX51 Tiny Version 1.06

QUESTION

Help. I've written an RTX51 Tiny program but it never seems to execute anything but my startup task. What could be wrong?

.
.
.
void  startup (void) _task_ 0
  {
  os_create_task (1);    // start task 1
  os_create_task (2);    // start task 2
  }
.
.
.

ANSWER

The problem with your RTX51 Tiny program is that your startup task exits incorrectly.

After os_create_task (2);, the startup task exits. This should never happen. If you want to terminate the startup task, you should call os_delete_task with the task ID. For example:

os_delete_task (os_running_task_id ());

MORE INFORMATION

Last Reviewed: Sunday, July 17, 2005


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.