- TMS370 Microcontroller/Gang Programmer User's Guide

Outputting a COFF File From PC Memory
3-10
Operating in the Display Window
3.8 Outputting a COFF File From PC Memory — the Output COFF Command
Use the output COFF command to create a COFF object file from the PC
memory. This command allows you to specify the block(s) of PC memory to
be used to create the COFF file. Each block of the PC memory is made into
one section in the COFF file, and you can specify the section address in the
COFF file to use for the block.
Step 1: Identify the file for the COFF output.
COFF Object file:
The name can be any valid DOS file name.
Step 2: Identify the address range you want to output by specifying the ob-
ject (COFF file) address range.
PC Memory base address: all
The default for this base address prompt,
all
, causes the valid ad-
dress ranges defined for the current device type to be used as
block(s) of PC memory. These blocks are used to create the COFF
file.
For example, the valid address ranges for a TMS370C756 device
are (1E00h–1FFFh) and (4000h–7FFFh). If you use the default for
this prompt, the PC memory inside those two ranges is used to
create two sections in the COFF file with section addresses 1E00h
and 4000h, respectively.
If, however, you want to use blocks of PC memory other than the de-
fault, enter a PC memory address instead of the default
all
, and then
enter the size of the block at the prompt:
Size (in bytes) : 0000h
The PC memory block that you specify must be inside the PC
memory address space. Otherwise, an error message is displayed
when an out-of-bounds error is detected. Press any key to erase the
error message and return to the prompt to re-enter the value.
Step 3: Specify the COFF object base address when using memory space
other than the default.
COFF object base address:
The default for this prompt is the value given for the PC memory base
address prompt. If you want to use a different address in COFF for
the block, enter an address here.
After you answer this prompt, the programmer returns to Step 2 to
ask for another PC memory base address. If you have specified all
the desired PC memory blocks, press
to terminate the input ses-
sion. If you need more PC memory blocks, continue repeating the
address prompts until a maximum of five blocks of PC memory have
been entered.