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-2126x/2136x/2137x SHARC Processors<br />

Rebuilding a Boot Kernel Using Comm<strong>and</strong> Lines<br />

Rebuild a boot kernel using comm<strong>and</strong> lines as follows.<br />

PROM Booting. The default boot kernel source file for PROM booting is<br />

26x_prom.asm for ADSP-2126x processors. After copying the default file<br />

to my_prom.asm <strong>and</strong> modifying it to suit your system, use the following<br />

comm<strong>and</strong> lines to rebuild the boot kernel.<br />

easm21k -proc ADSP-21262 my_prom.asm<br />

linker -T 2162x_ldr.ldf my_prom.doj<br />

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

2126x_SPI.asm for ADSP-2126x processors. After copying the default file<br />

to my_SPI.asm <strong>and</strong> modifying it to suit your system, use the following<br />

comm<strong>and</strong> lines to rebuild the boot kernel:<br />

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

linker -T 2126x_ldr.ldf my_SPI.doj<br />

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

If you modify the boot kernel for the PROM or SPI booting modes,<br />

ensure that the seg_ldr memory segment is defined in the .ldf file. Refer<br />

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

…\ldr\ installation directory 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 the address.<br />

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

the address does not contain a critical instruction, because the address is<br />

not executed during the booting sequence. Place a NOP or IDLE in this loca-<br />

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

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

Saved successfully!

Ooh no, something went wrong!