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 />

kernel executes from the reset vector, once the DMA that overwrites the<br />

kernel is complete. A last remnant of the kernel code is left at the reset<br />

vector location to replace the RTI with the user’s intended code. Because<br />

of this last kernel remnant, user application code should not use the first<br />

location of the reset vector. This first location should be a NOP or IDLE<br />

instruction. The kernel automatically completes, <strong>and</strong> the program controller<br />

begins sequencing the user application code at the second location<br />

in the processor reset vector space.<br />

When the boot process is complete, the processor automatically executes<br />

the user application code. The only remaining evidence of the boot kernel<br />

is at the first location of the interrupt vector. Almost no memory is sacrificed<br />

to the boot code.<br />

Boot Kernel Modification <strong>and</strong> <strong>Loader</strong> Issues<br />

Some systems require boot kernel customization. The operation of other<br />

tools (such as the C/C++ compiler) is influenced by whether the boot kernel<br />

is used.<br />

When producing a boot-loadable file, the loader utility reads a processor<br />

executable file <strong>and</strong> uses information in it to initialize the memory. However,<br />

the loader utility cannot determine how the processor SYSCON <strong>and</strong><br />

WAIT registers are to be configured for external memory loading in the<br />

system.<br />

If you modify the boot kernel by inserting values for your system, you<br />

must rebuild it before generating the boot-loadable file. The boot kernel<br />

contains default values for SYSCON. The initialization code can be found in<br />

the comments in the boot kernel source file.<br />

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

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

Saved successfully!

Ooh no, something went wrong!