25.12.2012 Views

VisualDSP++ 4.5 Loader and Utilities Manual - Analog Devices

VisualDSP++ 4.5 Loader and Utilities Manual - Analog Devices

VisualDSP++ 4.5 Loader and Utilities Manual - Analog Devices

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.

This example shows how to include this file in a C program:<br />

File Formats<br />

const unsigned loader_file[] =<br />

{<br />

#include “foo.ldr”<br />

};<br />

const unsigned loader_file_count = sizeof loader_file<br />

/ sizeof loader_file[0];<br />

The loader_file_count reflects the actual number of elements in the<br />

array <strong>and</strong> cannot be used to process the data.<br />

<strong>Loader</strong> Output Files in Binary Format<br />

The splitter utility can output binary format files (.ldr) to support a variety<br />

of PROM <strong>and</strong> microcontroller storage applications.<br />

Binary format files use less space than the other loader file formats. Binary<br />

files have the same contents as the corresponding ASCII file, but in binary<br />

format.<br />

Output Files in Motorola S-Record Format<br />

The loader <strong>and</strong> splitter utilities can output Motorola S-record format files<br />

(.s_#), which conform to the Intel st<strong>and</strong>ard. The three file formats supported<br />

by the loader <strong>and</strong> PROM splitter utilities differ only in the width<br />

of the address field: S1 (16 bits), S2 (24 bits), or S3 (32 bits).<br />

An S-record file begins with a header record <strong>and</strong> ends with a termination<br />

record. Between these two records are data records, one per line:<br />

S00600004844521B Header record<br />

S10D00043C4034343426142226084C Data record (S1)<br />

S903000DEF Termination record (S1)<br />

Table A-5 shows the organization of an example header record.<br />

<strong>VisualDSP++</strong> <strong>4.5</strong> <strong>Loader</strong> <strong>and</strong> <strong>Utilities</strong> <strong>Manual</strong> A-11

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

Saved successfully!

Ooh no, something went wrong!