该工具将二进制binary文件转换成intel hex文件,设置参数如下:
语法:bin2hex [/option] binfile [hexfile]
binfile 为输入的二进制bin文件
hexfile 为要创建的intel hex文件
option可为以下值:
/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
注意:该工具为dos命令程序。它需要为文件名称和路径8.3命名约定,并且不能在windows 7 64位系统上运行。当然,可以在windows 7上实用xp模式(虚拟机)执行它。