Example 1: Building a Command File for Two 8-Bit EPROMS
C-3
Hex Conversion Utility Examples
C.2 Example 1: Building A Hex Command File for Two 8-Bit EPROMs
Example 1 shows how to build the hex command file you need for converting
a COFF object file for the memory system shown in Figure C–1. In this system,
there are two external 64K
8-bit EPROMs interfacing with a ’C54x target
processor. Each of the EPROMs contributes 8 bits of a 16-bit word for the tar-
get processor.
Figure C–1. A Two 8-Bit EPROM System
Lower 8 bits
Upper 8 bits
EPROM system memory width 16 bits
ROM width
8 bits
8 bits
ROM width
ROM1
64K
8
ROM0
64K
8
Width 16 Bits
CPU
By default, the hex conversion utility uses the linker load address as the base
for generating addresses in the converted output file. However, for this
application, the code will reside at physical EPROM address 0x0010, rather
than the address specified by the linker (0x1400). The circuitry of the target
board handles the translation of this address space. The paddr parameter allo-
cates a section and burns the code at EPROM address 0x0010.
The paddr parameter is specified within the SECTIONS directive (see Section
10.6,
The SECTIONS Directive, on page 10-22 for details). If you use the
paddr parameter to specify a load address for one section included in the con-
version, then you must specify a paddr for each section included in the conver-
sion. When setting the paddr parameter, you must ensure that the specified
addresses do not overlap the linker-assigned load addresses of sections that
follow.
In Example 1, two sections are defined: sec1 and sec2. You can easily add a
paddr parameter for each of these sections from within the SECTIONS direc-
tive. However, the task may become unmanageable for large applications with
many sections, or in cases where section sizes may change often during code
development.
Содержание 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: ......