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.

ADSP-21161 Processor Booting<br />

Link Boot. The default boot kernel source file for link booting is<br />

161_link.asm. After copying the default file to my_link.asm <strong>and</strong> modifying<br />

it to suit your system, use the following comm<strong>and</strong> lines to rebuild the<br />

boot kernel.<br />

easm21k -proc ADSP-21161 my_link.asm<br />

linker -T 161_ldr.ldf my_link.doj<br />

SPI Boot. The default boot kernel source file for link booting is<br />

161_SPI.asm. After copying the default file to my_SPI.asm <strong>and</strong> modifying<br />

it to suit your system, use the following comm<strong>and</strong> lines to rebuild the<br />

boot kernel:<br />

easm21k -proc ADSP-21161 my_SPI.asm<br />

linker -T 161_ldr.ldf my_SPI.doj<br />

<strong>Loader</strong> File Issues<br />

If you modify the boot kernel for the EPROM, host, SPI, or link booting<br />

modes, ensure that the seg_ldr memory segment is defined in the .ldf<br />

file. Refer to the source of this memory segment in the .ldf file located in<br />

the …\ldr\ directory of the of the target processor.<br />

Because the loader utility uses this address for the first location of the reset<br />

vector during the boot-load process, avoid placing code at this address.<br />

When using any of the processor’s power-up boot modes, ensure that this<br />

address does not contain a critical instruction. Because this address is not<br />

executed during the booting sequence, place a NOP or IDLE in this location.<br />

The loader utility generates a warning if the vector address 0x40004 does<br />

not contain NOP or IDLE.<br />

� When<br />

using <strong>VisualDSP++</strong> to create the loader file, specify the<br />

name of the customized boot kernel executable in the Kernel file<br />

box on the Load page of the Project Options dialog box.<br />

4-20 <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!