ARM Technical Support Knowledge Articles

MAKING BINARY FILES FROM HEX FILES

Applies to: General Topics

Answer


Information in this article applies to:


QUESTION

I need to create a BINARY file from the HEX file created by the object-HEX converter program. Where can I find a utility that does that?

ANSWER

There is such a utility program available on the Keil web site named HEX2BIN.ZIP. This program converts Intel HEX, HEX-286, and HEX-386 files into BINARY files. Run the program from the DOS prompt to see the list of directives:

Syntax: 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

Article last edited on: 2007-03-27 11:04:15

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential