Keil Logo

RTX51 TINY: TIPS


Information in this article applies to:

  • RTX51 Tiny Version 1

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 \C51\LIB folder. If you fail to do that, the linker includes the OLD RTX51TNY.LIB file.

MORE INFORMATION

Last Reviewed: Sunday, October 29, 2006


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.