Texas Instruments TMS320C3x User Manual

Page 377

Advertising
background image

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.

Advertising