ARM Technical Support Knowledge Articles

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

Applies to: BL51 Code-banking Linker/Locator

Answer

Information in this article applies to:


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 uVision or on the command line.

In uVision 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

Article last edited on: 2005-08-03 12:38:46

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential