ARM Technical Support Knowledge Articles

TIPS

Applies to: RTX51 Tiny Real-time Kernel

Answer


Information in this article applies to:


QUESTION

I'm creating an application that uses RTX51 Tiny. Can you give me any tips for using this RTOS?

ANSWER

Yes. Here are several tips that may help you:

  1. Round-robin multitasking is preemptive. It interrupts your task and switches to a new task after the specified number of OS ticks. Refer to CONF_TNY.A51.
  2. Use OS_WAIT for cooperative multitasking. When a task can be delayed for a few OS ticks, call the OS_WAIT function.
  3. Define tasks in order. Don't skip task numbers. This leaves blanks in the task table and may waste memory.
  4. OS_WAIT(K_TMO,0,0) doesn't do anything. So, don't use it.
  5. Declare functions in LARGE model if you are running out of DATA space. For example:
    void task_func (void)  large  _task_ x
    
  6. If you rebuild RTX51 Tiny, make sure that you copy the RTX51TNY.LIB file into the C51LIB folder. If you fail to do that, the linker includes the OLD RTX51TNY.LIB file.

MORE INFORMATION

Article last edited on: 2006-10-29 19:02: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