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.

<strong>Loader</strong> for ADSP-2106x/21160 SHARC Processors<br />

Once the boot kernel has been loaded successfully into the processor, the<br />

kernel follows the following sequence:<br />

1. Each boot kernel begins with general initializations for the DAG registers,<br />

appropriate interrupts, processor ID information, <strong>and</strong><br />

various SDRAM or WAIT state initializations.<br />

2. Once the boot kernel has finished the task of initializing the processor,<br />

the kernel initializes processor memory, both internal <strong>and</strong><br />

external, with user application code.<br />

ADSP-2106x/21160 Processor Boot Steams<br />

The structure of a loader file enables the boot kernel to load code <strong>and</strong><br />

data, block by block. In the loader file, each block of code or data is preceded<br />

by a block header, which describes the block —length, placement,<br />

<strong>and</strong> data or instruction type. After the block header, the loader utility outputs<br />

the block body, which includes the actual data or instructions for<br />

placement in the processor memory. The loader utility, however, does not<br />

output a block body if the actual data or instructions are all zeros in value.<br />

This type of block called a zero block. Table 3-12 describes the block<br />

header <strong>and</strong> block body formats.<br />

Table 3-12. Boot Block Format<br />

Block header<br />

Block body<br />

(if not a zero block)<br />

First word Bits 16–47 are not used.<br />

Bits 0–15 define the type of data block (tag).<br />

Second word Bits 16–47 are the start address of the block.<br />

Bits 0–15 are the word count for the block.<br />

Word 1 (48 bits)<br />

Word 2 (48 bits)<br />

The loader utility identifies the data type in the block header with a 16-bit<br />

tag that precedes the block. Each type of initialization has a unique tag<br />

number. The tag numbers <strong>and</strong> block types are shown in Table 3-13.<br />

<strong>VisualDSP++</strong> <strong>4.5</strong> <strong>Loader</strong> <strong>and</strong> <strong>Utilities</strong> <strong>Manual</strong> 3-17

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

Saved successfully!

Ooh no, something went wrong!