Keil™, An ARM® Company

Technical Support

GENERAL: MAKING BINARY FILES FROM HEX FILES


Information in this article applies to:

  • C51 All Versions
  • C166 All Versions
  • C251 All Versions
  • CARM All Versions

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

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Tuesday, March 27, 2007


Did this article provide the answer you needed?
 
Yes
No
Not Sure