Keil Logo

RTX51: USING CODE BANKING


Information in this article applies to:

  • C51 Version 5.50
  • RTX51 Version 3.10

QUESTION

I have a Dallas 80C320 application using RTX51 and I am about to implement code banking as we are completely out of code space. Your code banking examples in the "8051 Utilities" manual are quite well done, however, no mention is ever made in the examples of applications using RTX51 as well.

I understand code banking, but I am unsure how to go about this using RTX51.

ANSWER

The steps required to use code banking with an RTX51 application are found in the RTX51 User's Guide.

  • Make a copy of the L51_BANK.A51 file, add it to your project then customize it as required. This is described in the BL51 manual. Ensure that the ?B_RTX symbol is set to 1.
  • In the RTXSETUP.DCL file, set the ?RTX_BANKSWITCHING symbol to 1. This may also be set using the RTXSETUP application.
  • Link your project as described in the BL51 manual. All banks can be used without a problem by the tasks.

The manual page gives more details include which components of RTX51 are automatically located in the common area, and the extra stack requirements.

MORE INFORMATION

Last Reviewed: Friday, July 15, 2005


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.