Keil™, An ARM® Company

Technical Support

RTX51: MULTIPLE PUBLIC DEFINITIONS OF ?B_CURRENTBANK


Information in this article applies to:

  • RTX51 Version 5.10

SYMPTOMS

I am using bank switching and when I build my project, I get the following error:

*** ERROR 104: MULTIPLE PUBLIC DEFINITIONS
    SYMBOL:  ?B_CURRENTBANK
    MODULE:  ..\OBJ\L51_BANK.OBJ (?BANK?SWITCHING)

What am I doing wrong?

CAUSE

You have not configured RTX51 to use code banking, so the ?B_CURRENTBANK symbol is being defined by both RTX51 and the L51_BANK.A51 code banking file, generating the error.

RESOLUTION

Run RTXSETUP and open your RTXSETUP.DCL file. There is an option titled 'Use bankswitching'. Make sure that this option is checked.

Alternatively, you can edit your RTXSETUP.DCL file directly, and set the symbol ?RTX_BANKSWITCHING to 1.

MORE INFORMATION

Last Reviewed: Friday, July 15, 2005


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