Documentation for mkhex4bin.pl

NAME

mkhex4bin.pl

SYNOPSIS

Creates a command file for the TI hex conversion utility (such as hex470) that is useful for converting a TI COFF or ELF .out file to a binary .bin file.

USAGE

Rarely invoked alone. Usually invoked as part of running the accompanying batch file tiobj2bin.bat. Instructions on using tiobj2bin.bat are at the top of that file.

If invoked directly ...

mkhex4bin.pl [options] xml file

   ... OR ...

ofdXX -x out file | perl mkhex4bin.pl [options]

OPTIONS

 -h               : Output usage and quit
 --cg_xml_version : Print out the version of the cg_xml package in use

CREATING XML INPUT

OFD stands for Object File Display utility. Examples include ofd6x for C6000 and ofd55 for C5500.

Use the -x option of OFD to create the XML file. Example ...

      ofd6x -x -o=file.xml file.out

Alternatively, pipe the output from OFD into the script ...

      ofd6x -x file.out | perl mkhex4bin.pl

OFD OPTIONS

Recent releases of OFD support options for filtering the XML output down to what is strictly of interest. The best options to use in combination with this script are:

  -x --xml_indent=0 --obj_display=none,sections,header,segments

Filtering the XML in this way reduces the amount of data processed by this script, thus making it run faster.

PERL VERSION DETAILS

This script was written using Perl version 5.8.3. It may not work with earlier revisions of Perl.

 Documentation for mkhex4bin.pl