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.
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: ......