IHEX(1)

NAME
ihex - Convert Intel hex files to and from binary

SYNOPSIS
ihex -e [options] [input...] ihex -d [options] [input [output]] ihex --help ihex --version

DESCRIPTION
ihex(1) converts binary files to intel hex files and vice versa.

OPTIONS

-e, --encode
    Convert a binary stream to a hex file. This is the default if neither -e nor -d is specified.

-d, --decode
    Convert a hex file to a binary stream.

-i string
    Set the input file name. Default is stdin. When encoding, this option can be used multiple times to combine several binary files into one hex file.

-o string
    Set the output file name. Default is stdout. When decoding each occurance of '#' will be replaced by a hex digit of the base address of the chunk contained in that file. When encoding, this option must preceede the first -i option on the command line.

-c string
    Set an input file for encoding and assume that the file is an intel hex file. This does a simple pass through conversion (file consistency is not checked but checksums are recalculated). This option is invalid when decoding. For encoding it can be used mutliple times to merge multiple intel hex files into one.

-a, --address int
    Set the base address for the next input file when encoding.

-n, --record-size int
    Set the maximum record size for encoding.

--help
    Print usage information

--version
    Print version information

SEE ALSO
hex(1)

AUTHOR
Hampa Hug <hampa@hampa.ch>