| |||||
Technical Support Support Resources
Product Information | RTX51 TINY: TASKS NEVER STARTInformation in this article applies to:
QUESTIONHelp. 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
}
.
.
.
ANSWERThe 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 |
||||
| |||||