Keil™, An ARM® Company

Technical Support

AX51: ERRORS ASSEMBLING XBANKING.A51


Information in this article applies to:

  • AX51 Version 1.14
  • µVision2 Version 2.14

SYMPTOM

When creating a project that uses XBANKING, the following error may be received when you assemble the XBANKING.A51 file using the AX51 assembler.

000000                  106+1   ?C?CLDXPTR:     LOAD_BANK
*** ERROR #A45 IN 107 (XBANKING.A51, LINE 106): UNDEFINED SYMBOL

The error indicates that there is an undefined symbol in the LOAD_BANK macro.

CAUSE

This error is caused by the registers DPL and DPH that are undefined by the AX51 assembler.

RESOLUTION

Define the DPL and DPH registers prior to using the LOAD_BANK macro. This will solve this problem. For example:

B       DATA 0F0H       ; SFR Address
DPL     DATA 082H
DPH     DATA 083H

Last Reviewed: Friday, July 20, 2001


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