Technical Support

BL51: WARNING 20 (NBANKS LESS THAN # OF CODE BANKS), PT 1

Information in this article applies to:

  • C51 Version 5.50

SYMPTOMS

I have a project which uses code banking, but I get the following error when I link my project:

*** WARNING L20: L51_BANK.A51: NBANKS < NUMBER OF CODE BANKS
NBANKS:  16
ACTUAL:  229
LINK/LOCATE RUN COMPLETE.  1 WARNING(S),  0 ERROR(S)

This warning is not documented in the 8051 Utilities Manual.

CAUSE

You need to specify which code banks to put your object files into.

RESOLUTION

This can be solved in two ways. Either in µVision or on the command line.

In µVision choose 'Edit Project' from the Project menu:

  1. Select each source file in turn that you want to place into a code bank.
  2. Enter the code bank number into the 'bank number' box at the bottom of the window.
  3. Click on the Save button and re-build your project.

If you are calling BL51 from the command line, then you must use the BANKx directive. For example, to put 'c_bank0.obj' into bank 1, use:

BANK1{C_BANK0.OBJ}

MORE INFORMATION

Last Reviewed: Wednesday, August 03, 2005


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