Overview
Converts an Intel HEX file to a binary file. The maximum address is FFFF.
PlatformWindows
Source codeANSI C (C++ Builder)
License2-Clause BSD
Download
asu ihex2bin Version 1.11
Download asu ihex2bin 1.11 ↗Compile
To enable romanized messages, add #define ROMAJI to ihex2bin.c.
The source uses Shift JIS encoding. You may need to convert its encoding or remove Japanese text for your compiler.
> bcc32 -DWINDOWS ihex2bin.c ihexa.cIncluded files
ihex2bin.exe— English executable.ihex2binj.exe— Japanese executable.ihex2bina.exe— English executable (same asihex2bin.exe).ihex2bin.c— Japanese source file 1.ihex2bina.c— English source file 1 (ihex2bin.c+#define ROMAJI).ihexa.c— Source file 2.
Examples
Read abc.hex and write abc.bin.
> ihex2bin abc.hexRead addresses 100H through 3FFH from abc.hex and write abc.bin.
> ihex2bin -s100 -e3ff abc.hexRead abc.hex and write abc.com.
> ihex2bin -kcom abc.hexRead abc.hex and write def.com.
> ihex2bin -odef.com abc.hexRead abc.hex and write c:/mydir/def.com.
> ihex2bin -oc:/mydir/def.com abc.hexCommand-line usage
Intel HEX to binary file converter (maximum address: FFFF).
usage: ihex2bin [-s<hexnumber>] [-e<hexnumber>] [-k<extension>] [-o<writefile>] [-AN] readfile
xxx -s,-e hex numbers. -k filename extension. -o filename
-oxxx (path+)filename. for example -o/abc/abc.bin
-sxxx start address(hex). for example -s20A
-exxx end address(hex). for example -e5ca
-kxxx output filename extension. for example -kCOM
-A romanized character message(default)
-N Japanese message日本語での使い方
インテルHEXファイルからバイナリファイルへのコンバーター
使い方: ihex2bin [-s<16進数値> [-e<16進数値>] [-k<出力拡張子>] [-o<書き込みファイル>] [-AN] 読込ファイル
xxxは-s,-eでは16進数。-kでは拡張子の文字。-oではファイル名
-oxxx 書き込み(パス+)ファイル名。例えば -o/abc/abc.bin
-sxxx 開始番地。例えば -s20A なら 20A番地から
-exxx 終了番地。例えば -e5CA なら 5CA番地まで
(-s と -e はターゲットのメモリ番地を指定します。)
(注意:メモリを読むわけではなく、ファイルから読む)
-kxxx 出力ファイルの拡張子を指定。-kCOM なら 拡張子を.COMにする
-A エラーや説明等のメッセージをローマ字で出力する。
-N エラーや説明等のメッセージを全角で出力する。