Texas Instruments TMS320C3x 사용자 설명서

다운로드
페이지 757
TMS320C32 Boot Loader
 
11-22
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
Table 11–8.
Source Data Stream Structure (Continued)
ÁÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁÁ
Valid Data Entries
ÁÁ
ÁÁ
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
Content
ÁÁ
ÁÁ
ÁÁÁÁ
ÁÁÁÁ
Word
m + 2
Last block destination memory width and data-type size in
the format given in the Valid Data Entries column.
SSSSSS6xh
m + 3
First word of last block.
A ’C32 valid instruction or any 8-,
16-, or 32-bit wide data value
.
.
.
.
.
.
.
.
.
j
Last word of last source block
ÁÁÁÁ
Á
ÁÁ
Á
Á
ÁÁ
Á
ÁÁÁÁ
j + 1
ÁÁ
ÁÁ
ÁÁ
ÁÁ
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
Á
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
Á
Á
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
Á
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
Zero word. Note that if more than one source block was read,
word 
j shown above would be the last word of the last block.
Each block consists of header and data portions. The block’s
header is shaded darker than the block’s data section.
ÁÁ
ÁÁ
ÁÁ
ÁÁ
ÁÁÁÁÁÁÁÁÁÁ
Á
ÁÁÁÁÁÁÁÁ
Á
Á
ÁÁÁÁÁÁÁÁ
Á
ÁÁÁÁÁÁÁÁÁÁ
0h
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
Á
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
Á
Á
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
Á
ÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁ
† Word 1 does not exist in serial-port boot load since the source program does not reside in memory.
‡ The 
SSSSSS
 hexadecimal digits refer to the lower 24 bits of the strobe control register. The 
x
 hexadecimal digit identifies
the strobe as follows: 0 for IOSTRB, 4 for STRB0, and 8 for STRB1. SSSSSS6xh is cleared to 0 when loading the entire field
into internal memory.
Each source block can be loaded into a different memory location. Each block
specifies its own size and destination address. The last source block of the
data stream is appended with a zero word. Because the ’C32’s STRBs can be
configured to support different external memory widths and data-type sizes,
each source block specifies its data-type size. The external memory width is
set when the boot loader reads the STRBx control register values in the source
data stream header.
To build a ’C32 boot data stream with the HEX30 utility provided with the
TMS320 floating-point code-generation tools, use the following steps:
-
Compile/assemble code with –v32 switch using v4.7 or later of the
TMS320 floating-point C compiler/assembler. If the code-generation tools
are invoked with CL30 and –z switch, include –v32 switch in the linker
command file.
-
Link as usual.
-
Run Hex30 utility version 4.7 or later. The –v32 switch used in the compiler/
assembler will create a header in the COFF file, identifying it as a ’C32 for
the Hex30.