Building a Table for an On-Chip Boot Loader
10-28
10.9 Building a Table for an On-Chip Boot Loader
Some DSP devices, such as the ’C54x, have a built-in boot loader that initial-
izes memory with one or more blocks of code or data. The boot loader uses
a special table (a
boot table) stored in memory (such as EPROM) or loaded
from a device peripheral (such as a serial or communications port) to initialize
the code or data. The hex conversion utility supports the boot loader by auto-
matically building the boot table.
10.9.1 Description of the Boot Table
The input for a boot loader is the boot table. The boot table contains records
that instruct the on-chip loader to copy blocks of data contained in the table to
specified destination addresses. Some boot tables also contain values for ini-
tializing various processor control registers. The boot table can be stored in
memory or read in through a device peripheral.
The hex conversion utility automatically builds the boot table for the boot
loader. Using the utility, you specify the COFF sections you want the boot
loader to initialize, the table location, and the values for any control registers.
The hex conversion utility identifies the target device type from the COFF file,
builds a complete image of the table according to the format required by that
device, and converts it into hexadecimal in the output files. Then, you can burn
the table into ROM or load it by other means.
The boot loader supports loading from memory that is narrower than the nor-
mal width of memory. For example, you can boot a 16-bit TMS320C54x from
a single 8-bit EPROM by using the –memwidth option to configure the width
of the boot table. The hex conversion utility automatically adjusts the table’s
format and length. See the boot loader example in the
TMS320C54x DSP Ref-
erence Set for an illustration of a boot table.
10.9.2 The Boot Table Format
The boot table format is simple. Typically, there is a header record containing
the width of the table and possibly some values for various control registers.
Each subsequent block has a header containing the size and destination
address of the block followed by data for the block. Multiple blocks can be
entered; a termination block follows the last block. Finally, the table can have
a footer containing more control register values. See the boot loader section
in the
TMS320C54x DSP Reference Set for more information.
Содержание TMS320C54x
Страница 38: ......
Страница 39: ......
Страница 40: ......
Страница 41: ......
Страница 42: ......
Страница 43: ......
Страница 44: ......
Страница 45: ......
Страница 46: ......
Страница 47: ......
Страница 48: ......
Страница 49: ......
Страница 50: ......
Страница 51: ......
Страница 52: ......
Страница 53: ......
Страница 54: ......
Страница 55: ......
Страница 56: ......
Страница 57: ......
Страница 58: ......
Страница 59: ......
Страница 60: ......
Страница 61: ......
Страница 62: ......
Страница 276: ......
Страница 277: ......
Страница 278: ......
Страница 279: ......
Страница 280: ......
Страница 281: ......
Страница 282: ......
Страница 283: ......
Страница 284: ......
Страница 285: ......
Страница 286: ......
Страница 287: ......
Страница 288: ......
Страница 289: ......
Страница 290: ......
Страница 291: ......
Страница 292: ......
Страница 293: ......
Страница 294: ......
Страница 295: ......
Страница 296: ......
Страница 297: ......
Страница 298: ......
Страница 299: ......
Страница 300: ......
Страница 301: ......
Страница 302: ......