|
|||||||||||
Technical Support Support Resources
Product Information |
C251: Create Hex Files for Code Banking ApplicationsInformation in this article applies to:
QUESTIONI am using the Keil C251 toolchain to create a banked application. However, the HEX file created does not contain the individual banks, but instead a complete image. How can I create individual HEX files for each code bank? Also, I need to know the hardware configuration that allows me to use a common area and up to four code banks. Can you provide a circuit diagram? ANSWERThe first code bank is in the HEX file at address 80:0000 the 2nd code bank on address 81:0000 and so one. This is clearly shown in the linker MAP file under MEMORY MAP OF MODULE You may generate individual HEX files using OH251 in a batch file, as shown below.
You may run this batch file after the make command. That way, the hex files get created automatically after each build command. Schematics for code banking hardware is provided in the LX51 User's Guide. These examples are for a generic 8051, but can be easily adapted to a 251 hardware. By using the A16 and A17 address lines as enabled (when both lines are high, the code banking is enabled in 0xFF:0000). MORE INFORMATION
SEE ALSO
Last Reviewed: Thursday, February 25, 2021 | ||||||||||
|
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.