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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Loader</strong>/Splitter for Blackfin Processors<br />

A global header’s bit assignments for 8- <strong>and</strong> 16-bit addressable SPI booting<br />

are in Figure 2-13.<br />

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1<br />

Baud rate: 0 = 500 kHz (default), 1 = 1 MHz, 2 = 2 MHz<br />

Figure 2-13. SPI Boot: Global Header Bit Assignments<br />

Blocks, Block Headers, <strong>and</strong> Flags<br />

For application code, a block is the basic structure of the output .ldr file<br />

when the second-stage loader is used. All application code is grouped into<br />

blocks. A block always has a header <strong>and</strong> a body if it is a non-zero block. A<br />

block does not have a body if it is a zero block. A block structure is illustrated<br />

in Figure 2-14.<br />

4 BYTES<br />

N BYTES<br />

4 BYTES<br />

4 BYTES<br />

4 BYTES<br />

N1 BYTES<br />

OUTPUT .LDR FILE<br />

BYTE COUNT (N)<br />

2 nd STAGE LOADER<br />

2 nd STAGE LOADER<br />

ADDRESS<br />

GLOBAL HEADER<br />

SIZE OF APPLICATION<br />

CODE (N1)<br />

APPLICATION CODE<br />

Figure 2-14. Application Block<br />

<strong>VisualDSP++</strong> <strong>4.5</strong> <strong>Loader</strong> <strong>and</strong> <strong>Utilities</strong> <strong>Manual</strong> 2-13<br />

0<br />

SIZE OF APPLICATION<br />

CODE (N1)<br />

START ADDRESS<br />

OF BLOCK 1<br />

BYTE COUNT<br />

OF BLOCK 1<br />

FLAG FOR BLOCK 1<br />

BODY OF BLOCK 1<br />

START ADDRESS<br />

OF BLOCK 2<br />

BYTE COUNT<br />

OF BLOCK 2<br />

......<br />

4 BYTES<br />

4 BYTES<br />

2 BYTES<br />

BLOCK<br />

HEADER<br />

BLOCK

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

Saved successfully!

Ooh no, something went wrong!