Building a Table for an On-Chip Boot Loader
10-32
10.9.5 Setting the Entry Point for the Boot Table
After completing the boot load process, program execution starts at the ad-
dress of the first block loaded (the default entry point). By using the –e option
with the hex conversion utility, you can set the entry point to a different address.
For example, if you want your program to start running at address 0123h after
loading, specify –e 0123h on the command line or in a command file. You can
determine the –e address by looking at the map file that the linker generates.
Note:
Valid Entry Points
The value must be a constant; the hex conversion utility cannot evaluate
symbolic expressions like c_int00 (default entry point assigned by the
TMS320C54x C compiler).
When you use the –e option, the utility builds a dummy block of length 1 and
data value 0 that loads at the specified address. Your blocks follow this dummy
block. Since the dummy block is loaded first, the dummy value of 0 is over-
written by the subsequent blocks. Then, the boot loader jumps to the –e option
address after the boot load is completed.
When using the –bootorg WARM option, the –e option sets the address of
where the boot table is loaded in ROM.
10.9.6 Using the ’C54x Boot Loader
This subsection explains and gives an example on using the hex conversion
utility with the boot loader for ’C54x devices. The ’C54x boot loader has several
different modes. You can select these modes by using the –bootorg and
–memwidth options:
Mode
–bootorg Setting
–memwidth Setting
8-bit parallel I/O
–bootorg PARALLEL
–memwidth 8
16-bit parallel I/O
–bootorg PARALLEL
–memwidth 16
8-bit serial RS232
–bootorg SERIAL
–memwidth 8
16-bit serial RS232
–bootorg SERIAL
–memwidth 16
8-bit parallel EPROM
–bootorg 0x8000
–memwidth 8
16-bit parallel EPROM
–bootorg 0x8000
–memwidth 16
8-bit parallel
–bootorg WARM
–memwidth 8
16-bit parallel
–bootorg WARM
–memwidth 16
8-bit I/O
–bootorg COMM
–memwidth 8
Summary of Contents for TMS320C54x
Page 38: ......
Page 39: ......
Page 40: ......
Page 41: ......
Page 42: ......
Page 43: ......
Page 44: ......
Page 45: ......
Page 46: ......
Page 47: ......
Page 48: ......
Page 49: ......
Page 50: ......
Page 51: ......
Page 52: ......
Page 53: ......
Page 54: ......
Page 55: ......
Page 56: ......
Page 57: ......
Page 58: ......
Page 59: ......
Page 60: ......
Page 61: ......
Page 62: ......
Page 276: ......
Page 277: ......
Page 278: ......
Page 279: ......
Page 280: ......
Page 281: ......
Page 282: ......
Page 283: ......
Page 284: ......
Page 285: ......
Page 286: ......
Page 287: ......
Page 288: ......
Page 289: ......
Page 290: ......
Page 291: ......
Page 292: ......
Page 293: ......
Page 294: ......
Page 295: ......
Page 296: ......
Page 297: ......
Page 298: ......
Page 299: ......
Page 300: ......
Page 301: ......
Page 302: ......