Texas Instruments TMS370 manual Outputting a Coff File From PC Memory

Page 60

Outputting a COFF File From PC Memory

3.8Outputting 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.

3-10

Operating in the Display Window

Image 60
Contents Users Guide 2546239-9704 TMS370 Microcontroller/Gang Programmer Users Guide Important Notice How to Use This Manual Read This FirstRelated Documentation Information About Cautions and Warnings Read This First Contents Differences in Command Structures for Microcontroller Figures Tables Examples Xii Introduction and Installation SectionMicrocontroller Programmer Overview and Description ±1. Microcontroller Programmer Personality ModuleMicrocontroller Programmer Overview and Description Gang Programmer Overview and Description ±2. Gang Programmer BoardGang Programmer Overview and Description Operating the Gang Programmer in PC Mode Operating the Gang Programmer in Standalone ModeGang Programmer Overview and Description Properly Installing the Programmer Hardware Connecting a Programmer to the PDS Base UnitPower Connection Connection to a PCConnection to an XDS Switch No Integrated Circuit IC Insertion ±3. Socket IdentificationTo install a DIP device To install a Plcc device Properly Installing the Programmer Software Installing the Software in a Single DirectoryInstalling the Software in Multiple Directories PRGRM370 @PROJ1.CFG Invoking the Programmer Software Coff fileGetting StartedÐExample Sessions Interactive Programming ExampleGettingStartedÐExampleSessions Batch Programming Example \prgrm370 xyz.out @abc.cfg ±bIntroduction and Installation Operating in the Configuration Window How Command Menus Work ±1. Command Menu StructureUsing the Special Function Keys What Happens If I Make an Error?Understanding Your Input at the Cursor Prompt ±1. Edit Control KeysConfiguration Window Overview and Description ±2. Configuration Window CommandsConfiguration Window Overview and Description Secondary Configuration WindowÐthe Show Ranges Window ±3. Show Ranges Parameter SummarySelecting the Proper Program Algorithm Device family name Device first name Control Register Editing the Configuration Parameters Program Algorithm±4. Device Table Edit Commands Editing the Device TableEditing the Configuration Parameters and Device Table Loading the Device Table Selecting a Current Device Ð the Choose Device Command Saving the Device TableShowing the Display Window Ð the Display Command Operating in the Display Window Operating in the Display Window What Happens If I Make an Error Understanding Your Input at the Prompt Display Window Overview and Description ±2. PC Memory Display and Reverse Assembled Code Windows±2. Display Window Commands ±3. Reverse Assembled Code Window CommandsESC Filling a Block of PC Memory With a Value Ð the Fill Command Loading a Coff File Into PC MemoryÐ the Load Command Outputting a Coff File From PC Memory Outputting a Coff File From PC Memory Moving Blocks of PC MemoryÐthe Move Command Programming a Device From PC Memory Ð the Program Command Programming Using the Microcontroller ProgrammerProgramming Complete, Program another device?y/n Programming Using the Gang Programmer Address out of range, Press any key Showing and Operating Within a Text FileÐthe Show Command ±4. Show Text File CommandsPositioning the Cursor at Top of a File Ð the Top Command Uploading Using the Microcontroller Programmer Uploading Using the Gang Programmer Unable to communicate with TMS370 device ± Retry, Abort Verifying the Contents of a Device ± the Verify Command Verifying Using the Gang Programmer Device test failed, continue? y/n Verifying the Contents of a Device Editing the Contents of PC MemoryÐthe Edit Command Using the Master Mode MenuÐthe Master Command Suspending the Program and Entering DOSÐthe System Command Quitting the Program and Exiting to DOSÐthe Quit CommandOperating the Programmer in Batch Mode Understanding the Batch Mode File Example A±1. Example Configuration/Batch FileBatch File Command Rules and Descriptions Executable Batch CommandsNonexecutable Batch Commands Defaultable CommandsBatch Mode Status Messages Operating the Programmer in Batch Mode Error Messages Error Message Descriptions Invalid programming range ± Retry, AbortInvalid Vcc chosen ± Retry, Abort These error messages are specific to the gang programmers Configuration Parameters Table C±1. Valid Configuration ParametersConfiguration Parameters Using Keystroke Capture Files Example D±1. Keystroke File Example.key Table D±1. Valid Nonprintable Characters$INS Using Keystroke Capture Files Index Show ID software revision information, 2-9 descriptionConnecting to a pc, 1-9 connecting to an XDS Index Index-4 Important Notice