RTEMS Logo

RTEMS 4.9.2 On-Line Library


RTEMS Specific Utilities unhex - Convert Hexadecimal File into Binary Equivalent

PREV UP NEXT Bookshelf RTEMS Development Environment Guide

4.2: unhex - Convert Hexadecimal File into Binary Equivalent

SYNOPSIS

unhex [-valF] [-o file] [file [file ...] ]

DESCRIPTION

unhex accepts Intel Hexadecimal, Motorola Srecord, or TI 'B' records and converts them to their binary equivalent. The output may sent to standout or may be placed in a specified file with the -o option. The designated output file may not be an input file. Multiple input files may be specified with their outputs logically concatenated into the output file.

OPTIONS

This command has the following options:

v
Verbose
a base
First byte of output corresponds with base address
l
Linear Output
o file
Output File
F k_bits
Fill holes in input with 0xFFs up to k_bits * 1024 bits

EXAMPLES

The following command will create a binary equivalent file for the two Motorola S record files in the specified output file binary.bin:

unhex -o binary.bin downloadA.sr downloadB.sr


PREV UP NEXT Bookshelf RTEMS Development Environment Guide

Copyright © 1988-2008 OAR Corporation