| |||||
Technical Support Support Resources
Product Information | GENERAL: SPLITTING HEX FILESInformation in this article applies to:
QUESTIONI have generated an Intel HEX-386 file, however in order to download it to my Phytec KC167 board I need to split the HEX file into two, one for each bank of Flash memory. How can I do this? ANSWERYou can use the BIN2HEX and HEX2BIN utilities to split a HEX-386 file.
The following are utilities available from the Keil web site: The utilities are DOS based, and running them without arguments will show all the available options: HEX2BINSyntax: HEX2BIN [/option] hexfile [binfile] hexfile is the Intel HEX input file binfile is the binary file to create option may be any of the following Note: n is a decimal number. /Ln Binary file length /Pn Pad data for binary file /On Address offset (to add to HEX records) /M Merge data into existing BIN file /Q Quiet mode (no statistics are displayed) /X Don't process ext. segment/linear address records /? This help text BIN2HEXSyntax: BIN2HEX [/option] binfile [hexfile] binfile is the binary input file hexfile is the Intel HEX file to create option may be any of the following Note: n is a decimal number. /Ln Bytes to read from binary file /In Binary file starting offset /On Output file address offset (where HEX data starts) /M Merge data into existing HEX file /2 Generate HEX file using ext. segment address records (HEX86) /4 Generate HEX file using ext. linear address records (HEX386) /Q Quiet mode (no statistics are displayed) /T Exclude EOF record /A Append to end of existing HEX file /? This help text Last Reviewed: Thursday, September 22, 2005 | ||||
| |||||