31.12.2013 Views

Linkage Kit Manual V6-00 - Fujitsu

Linkage Kit Manual V6-00 - Fujitsu

Linkage Kit Manual V6-00 - Fujitsu

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 17 BINARY CONVERTER (m2bs, h2bs)<br />

17.1 Outline of Binary Converter<br />

The binary converter converts files output by the S format or HEX format into binary<br />

data files.<br />

It not only simply converts to binary data, but also supports a split mode that separates<br />

files into several files for output.<br />

■ Outline of the Binary Converter<br />

The binary converter converts object files of the S format or HEX format made by the linkage kit into<br />

binary data (memory images) and outputs them to files.<br />

Use m2bs to convert the S format into binary data; use h2bs to convert the HEX format into binary data.<br />

It is possible to specify a multiple of input files (S format or HEX format). Also, it is possible to separate<br />

converted binary data into a multiple of files of specified byte sizes (hereinafter referred to as the split<br />

mode).<br />

Figure 17.1-1 Overview of the Binary Converter<br />

S format file<br />

m2bs<br />

Binary data file<br />

(.mhx)<br />

(.bin)<br />

HEX format file<br />

h2bs<br />

Binary data file<br />

(.hex)<br />

(.bin)<br />

Note:<br />

The portion of an input file containing no data is padded with 0xFF (default value). The binary data<br />

file to be output is the contents of memory that is output into a file without changes.<br />

Use the padding option (-p) to pad with a specified value the portion of an input file containing no<br />

data. For details on how to use this option, see Section "14.3 Specifying Padding Data (-p)".<br />

The default extension of an output binary file is .bin. In the split mode, the extension .bxx (xx is a<br />

two digit number (01 through 16)) is unconditionally added.<br />

292 PART IV OBJECT FORMAT CONVERTERS

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!