Keil™, An ARM® Company

Technical Support

BL51: DISABLING AUTOMATIC BANK SWITCHING


Information in this article applies to:

  • C51 Version 5.50

QUESTION

I wish to implement my own bank switching mechanism. How can I disable the automatic bank switching generated by the linker for inter-bank function calls?

ANSWER

Use the NOJMPTAB (abbreviation: NOJT) directive. The linker will no longer modify function calls to jump to the bank switching code.

Using this directive has the following effects on the linker:

  • The code banking assembler file L51_BANK.A51 is no longer required.
  • The linker does not modify any call instructions.
  • The linker does not generate any warnings if a jump or call is made to another code bank.

You must ensure that the correct bank is selected before making any inter-bank calls or jumps.

You may specify the directive in one of the boxes under the Additional tab in the BL51 Code Banking Linker Options in µVision.

MORE INFORMATION

  • Refer to NOJMPTAB in the BL51 User's Guide.

Last Reviewed: Friday, July 15, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure