Keil™, An ARM® Company

BL51 User's Guide

BANKAREA Linker Directive

Abbreviation BA
Arguments BANKAREA (start_address, end_address)
Default None.
µVision Options — Target — Code Banking — Bank Area.
Description 

The BANKAREA directive specifies the starting and ending address of the code bank area. The addresses specified should reflect the actual address space where the code bank ROMs are physically mapped. All segments assigned to code banks are located within this address range unless they are defined differently using the SEGMENTS directive.

Note

  • If you use 64K code banks and you wish the linker to automatically size the common area, use of the BANKAREA directive is not required.
Example 
BL51 COMMON{C_ROOT.OBJ}, BANK0{C_BANK0.OBJ},
     BANK0{C_BANK0.OBJ}, BANK1{C_BANK1.OBJ},
     BANK2{C_BANK2.OBJ} TO MYPROG.ABS &
     BANKAREA(8000H,0FFFFH)