Building a Table for an On-Chip Boot Loader
10-30
10.9.3.1 Building the Boot Table
To build the boot table, follow these steps:
Step 1: Link the file. Each block of the boot table data corresponds to an
initialized section in the COFF file. Uninitialized sections are not con-
verted by the hex conversion utility (see Section 10.6,
The
SECTIONS Directive, on page 10-22).
When you select a section for placement in a boot-loader table, the
hex conversion utility places the section’s
load address in the des-
tination address field for the block in the boot table. The section
content is then treated as raw data for that block.
The hex conversion utility does not use the section run address.
When linking, you need not worry about the ROM address or the
construction of the boot table —the hex conversion utility handles
this.
Step 2: Identify the bootable sections. You can use the –boot option to tell
the hex conversion utility to configure all sections for boot loading.
Or, you can use a SECTIONS directive to select specific sections to
be configured (see Section 10.6,
The SECTIONS Directive, on page
10-22). Note that if you use a SECTIONS directive, the –boot option
is ignored.
Step 3: Set the ROM address of the boot table. Use the –bootorg option
to set the source address of the complete table. For example, if you
are using the ’C54x and booting from memory location 8000h,
specify –bootorg 8000h. The address field in the the hex conversion
utility output file will then start at 8000h.
If you use –bootorg SERIAL or –bootorg PARALLEL, or if you do not
use the –bootorg option at all, the utility places the table at the origin
of the first memory range in a ROMS directive. If you do not use a
ROMS directive, the table will start at the first section load address.
There is also a –bootpage option for starting the table somewhere
other than page 0.
Step 4: Set boot-loader-specific options. Set such options as entry point
and memory control registers as needed.
Step 5: Describe your system memory configuration. See Section 10.4,
Understanding Memory Widths, on page 10-9 and Section 10.5,
The ROMS Directive, on page 10-16 for details.
Содержание 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: ......