ARM Technical Support Knowledge Articles

TASKS NEVER START

Applies to: RTX51 Tiny Real-time Kernel

Answer


Information in this article applies to:


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

Article last edited on: 2005-07-17 11:00:31

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential