Keil Logo

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 the Four 64K Code Banks example).   The figure below shows the HEX file content when using the MERGE32K directive (as used in the 32K Common Area example).
 

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 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.
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.