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.

ADSP-2126x/2136x/2137x Processor Booting<br />

To omit an initial word of 0xa5.<br />

When -nokernel is selected, the loader utility does not place an<br />

initial word (A5) in the boot stream as required for SPI master<br />

booting.<br />

To replace the FINAL_INIT block with a USER_MESG header.<br />

The FINAL_INIT block (which typically contains the IVT code)<br />

should not be included in the .ldr file because the contents of the<br />

IVT (if any) is incorporated in the boot-stream. Instead, the loader<br />

utility appends one final bock header to terminate the loader file.<br />

The final block header has a block tag of 0x0 (USER_MESG). The<br />

header indicates to a subroutine processing the boot stream that<br />

this is the end of the stream. The header contains two 32-bit data<br />

words, instead of count <strong>and</strong> address information (unlike the other<br />

headers). The words can be used to provide version number, error<br />

checking, additional comm<strong>and</strong>s, return addresses, or a number of<br />

other messages to the importing subroutine on the processor.<br />

The two 32-bit values can be set on the comm<strong>and</strong> line as arguments<br />

to the “-nokernel[message1, message2]” switch. The first<br />

optional argument is msg_word1, <strong>and</strong> the second optional argument<br />

is msg_word2, where the values are interpreted as 32-bit unsigned<br />

numbers. If only one argument is issued, that argument is<br />

msg_word1. It is not possible to specify msg_word2 without specifying<br />

msg_word1.) If one or no arguments are issued at the comm<strong>and</strong><br />

line, the default values for the arguments are 0x00000000.<br />

Listing 5-1 shows a sample format for the USER_MESG header.<br />

Listing 5-1. Internal Booting: FINAL_INIT Block Header Format<br />

0x00000000 /* USER_MESG tag */<br />

0x00000000 /* msg_word1 (1st cmd-line parameter) */<br />

0x00000000 /* msg_word2 (2nd cmd-line parameter) */<br />

5-18 <strong>VisualDSP++</strong> <strong>4.5</strong> <strong>Loader</strong> <strong>and</strong> <strong>Utilities</strong> <strong>Manual</strong>

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

Saved successfully!

Ooh no, something went wrong!