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.

To Modify a Boot Kernel Source File<br />

<strong>Loader</strong> for ADSP-21161 SHARC Processors<br />

1. Copy the applicable boot kernel source file (161_link.asm,<br />

161_host.asm, 161_prom.asm, or 161_spi.asm).<br />

2. Apply the appropriate initializations of the SYSCON <strong>and</strong> WAIT<br />

registers.<br />

After modifying the boot kernel source file, rebuild the boot kernel (.dxe)<br />

file. Do this from the <strong>VisualDSP++</strong> IDDE (refer to <strong>VisualDSP++</strong> online<br />

Help for details), or rebuild the boot kernel file from the comm<strong>and</strong> line.<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 />

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

161_prom.asm. After copying the default file to my_prom.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_prom.asm<br />

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

Host Boot. The default boot kernel source file for host booting is<br />

161_host.asm. After copying the default file to my_host.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_host.asm<br />

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

<strong>VisualDSP++</strong> <strong>4.5</strong> <strong>Loader</strong> <strong>and</strong> <strong>Utilities</strong> <strong>Manual</strong> 4-19

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

Saved successfully!

Ooh no, something went wrong!