Keil™, An ARM® Company

Technical Support

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