Keil™, An ARM® Company

OHX51 User's Guide

Code Banking

When you use the extended LX51 Linker, you must use the OHX51 Object-HEX Converter to generate an Intel HEX-386 file that contains the common area and all the code banks. You may use the OHX51 directive MERGE32K on applications that use a 32K common area plus multiple 32K code banks, but not code bank #0.

The figure below shows the HEX file content without using the MERGE32K directive (as used in example Four 64K Code Banks).The figure below shows the HEX file content when using the MERGE32K directive (as used in example 32K Common Area).

Note

  • When you use the BL51 Linker to create code-banking programs, you must use the OC51 Banked Object File Converter to split the banked object files into abslute object files that contain no more than 64KB. The OH51 Object-HEX Converter may then convert these into HEX files. The HEX files are then programmed separately into the corresponding physical address space of the EPROM.