|ARM Technical Support Knowledge Articles|
Applies to: OH51 Object-HEX Converter
Information in this article applies to:
I have two code bank Hex files which are both 64k in size. Each one contains the common area. How can I combine them to generate one Hex file with the following memory organization?:
You can achieve this using the HEX2BIN and BIN2HEX utilities available from our web site. If your hex files are called BANK0.HEX and BANK1.HEX then the following is an example of the invokations you would use:
HEX2BIN /L131072 BANK0.HEX LINKED.BIN HEX2BIN /O65536 /M BANK1.HEX LINKED.BIN BIN2HEX /4 LINKED.BIN LINKED.HEX
LINKED.HEX is the combined Hex file and LINKED.BIN is an intermediate binary file. Each Hex file is converted to a binary file but with an address offset. For code bank 1 the offset is 65536 which is 10000H. Once the binary file is generated it is converted into a Hex file.
Note that the Hex file generated uses the Intel HEX-386 file format in order to accomodate addresses above FFFFH.
The same process may be employed for projects that use more than two code banks.
Click on the links below to download the utilities:
If you run the utilities without any arguments you will see a full list of all the options available for each.
Article last edited on: 2006-10-29 19:03:34
Did you find this article helpful? Yes No
How can we improve this article?