Bootloading Sequence
10-8
The data stream with its source program(s) should be in the format shown in
Table 10–2. The contents of words 4 through nvary for the different source
programs loaded throughout the entire data stream.The first three words and
the last three words are nonvariables that affect each of the source-program
blocks. The eight least significant bits (LSBs) of the first word specify the
memory width. If byte or half-word wide is selected, the loading sequence is
from LSBs to MSBs.
Table 10–2. Structure of Source Program Data Stream
Word
Contents
1
Memory width where source program resides (8, 16, or 32 bits wide)
2
Value to set in the global memory interface control register (shown in Figure 9–2).
3
Value to set in the local memory interface control register (shown in Figure 9–2).
4
Block size in 32-bit words of the first program block to be loaded (after the number of words is
loaded, the next word should be all zeros; if not, another block is assumed to follow).
5
Address where the source program is to be loaded.
6
First word of source program.
n
Last word of source program (the program organized as words 4 through n —
these shaded
words
).
n+1
Word of all zeros. (Note that if several source-program blocks were sent, word nabove would be
the last word of the lastsource-program block. Each source-program block would have the format
shown in words 4 through n This word of all zeros follows the lastsource program block).
n+2
IVTP value (interrupt vector table pointer, see Section 3.2).
n+3
TVTP value (trap vector table pointer, see Section 3.2).
n+4
Memory location for IACK instruction (see IACK instruction in Chapter 14).
Note:
The shaded area identifies the source program block.
Each source program in a multiple block program transfer can be loaded to dif-
ferent specified destinations. Each program block specifies its program’s size
and destination address at the beginning of the block. End the entire block pro-
gram loader function by following the last block with an all-zero word
(0000 0000h).