Advanced Boot Techniques
24-26
ADSP-BF50x Blackfin Processor Hardware Reference
The elfloader utility provides two different mechanisms to support the
initcode feature.
• The
-init initcode.dxe
command line switch
• The
-initcall address/symbol
command line switch
If enabled by the elfloader
-init initcode.dxe
command-line switch, the
initcode is added to the beginning of the boot stream. Here,
initcode.dxe
refers to the user-provided custom initialization executable— a separate
project.
Figure 24-6
shows a boot stream example that performs the fol-
lowing steps.
1. Boot initcode into L1 memory.
2. Execute initcode.
3. Overwrite initcode with final application code.
4. Boot data/code into memory.
5. Continue program execution with block n.
Although
initcode.dxe
files are built as CCES or Vi+ projects,
they differ from standard projects. Initcodes provide only a callable
sub-function, so they look more like a library than an application. Never-
theless, unlike library files (
.DLB
file extension), the symbol addresses have
already been resolved by the linker.
An initcode is always a heading for the regular application code. Conse-
quently whether the initcode consists of one or multiple blocks, it is not
terminated by a
BFLAG_FINAL
bit indicator—this would cause the boot
ROM to terminate the boot process.
It is advantageous to have a clear separation between the initcode and the
application by using the
-init
switch. If this separation is not needed, the
elfloader
-initcall
command-line switch might be preferred. It enables
Summary of Contents for EZ-KIT Lite ADSP-BF506F
Page 50: ...Contents l ADSP BF50x Blackfin Processor Hardware Reference ...
Page 92: ...Development Tools 1 30 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 110: ...Interface Overview 3 12 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 236: ...Internal Flash Memory Control Registers 6 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 650: ...Programming Examples 15 56 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 804: ...Programming Examples 17 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1194: ...Programming Examples 24 90 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1256: ...ACM Registers A 50 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1264: ...Boundary Scan Architecture B 8 ADSP BF50x Blackfin Processor Hardware Reference ...