Keil™, An ARM® Company

OH51 User's Guide

Code Banking

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 absolute 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.

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. If code bank 0 does not exist in your application, OHX51 skips this memory area.

The figure below shows the HEX file content for the example Banking With Four 64 KByte Banks.The figure below shows the HEX file content for the example Banking With Common Area.