Texas Instruments TMS370 Batch File Command Rules and Descriptions, Executable Batch Commands

Page 81

Batch File Command Rules and Descriptions

A.2 Batch File Command Rules and Descriptions

The batch commands can be classified as executable or nonexecutable. The executable commands invoke operations, whereas the nonexecutable com- mands define programming parameters and the device type.

The batch commands must conform to the following basic syntax rules:

1)Lower case and upper case characters are not distinguished.

2)Only one command is allowed on each line.

3)An = is required between a command and its operand if the command has an operand.

4)No spaces are allowed between a command and its operand.

5)No leading spaces are allowed on a command line.

6)Comments are indicated by a ; in front of the comment text.

If any of the above rules are violated, or if a nonexistent command or file is spe- cified in a configuration/batch file, an error message is displayed after the file has been invoked.

A.2.1 Executable Batch Commands

There are three executable commands:

PR Program and verify device(s).

VE Verify device(s).

RDo device check on all device (gang programmer only).

Use only one of the commands, PR or VE, in a batch file. If both are specified, only the PR command is executed.

Make sure that the data ranges in the COFF file are a subset of the ranges in the device selected. The programmer attempts to program all the data ranges of the specified COFF file, regardless of the device ranges defined in the de- vice table. To eliminate extra data ranges (ranges that would be later pro- grammed in an external EPROM, for example) from the COFF output file, mark them as NOLOAD in the link command file. Refer to the TMS370 Assembly Language Tools User's Guide for more information on the linker and the NOLOAD section type.

In the normal mode, the entire data range defined for the selected device is usually programmed, and in the batch mode only the data range defined in the output file is programmed. Therefore, it is possible that a device programmed in batch mode will not verify correctly in the normal mode; the bytes failing veri- fication are unused memory. To avoid this problem, always start with erased devices, and always fill memory with FFh before loading a file in normal mode.

No error file is created when you program or verify in batch mode with the gang programmer. Errors are indicated by the red LED below the failed device.

A-3

Image 81
Contents Users Guide 2546239-9704 TMS370 Microcontroller/Gang Programmer Users Guide Important Notice Read This First How to Use This ManualRelated Documentation Information About Cautions and Warnings Read This First Contents Differences in Command Structures for Microcontroller Figures Tables Examples Xii Section Introduction and Installation±1. Microcontroller Programmer Personality Module Microcontroller Programmer Overview and DescriptionMicrocontroller Programmer Overview and Description ±2. Gang Programmer Board Gang Programmer Overview and DescriptionGang Programmer Overview and Description Operating the Gang Programmer in Standalone Mode Operating the Gang Programmer in PC ModeGang Programmer Overview and Description Connecting a Programmer to the PDS Base Unit Properly Installing the Programmer HardwarePower Connection Connection to a PCConnection to an XDS Switch No ±3. Socket Identification Integrated Circuit IC InsertionTo 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 Coff file Invoking the Programmer SoftwareInteractive Programming Example Getting StartedÐExample SessionsGettingStartedÐExampleSessions \prgrm370 xyz.out @abc.cfg ±b Batch Programming ExampleIntroduction and Installation Operating in the Configuration Window ±1. Command Menu Structure How Command Menus WorkWhat Happens If I Make an Error? Using the Special Function Keys±1. Edit Control Keys Understanding Your Input at the Cursor Prompt±2. Configuration Window Commands Configuration Window Overview and DescriptionConfiguration Window Overview and Description ±3. Show Ranges Parameter Summary Secondary Configuration WindowÐthe Show Ranges WindowSelecting the Proper Program Algorithm Device family name Device first name Control Register Program Algorithm Editing the Configuration ParametersEditing the Device Table ±4. Device Table Edit CommandsEditing the Configuration Parameters and Device Table Loading the Device Table Saving the Device Table Selecting a Current Device Ð the Choose Device CommandShowing 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 ±2. PC Memory Display and Reverse Assembled Code Windows Display Window Overview and Description±3. Reverse Assembled Code Window Commands ±2. Display 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 Using the Microcontroller Programmer Programming a Device From PC Memory Ð the Program CommandProgramming Complete, Program another device?y/n Programming Using the Gang Programmer Address out of range, Press any key ±4. Show Text File Commands Showing and Operating Within a Text FileÐthe Show CommandPositioning 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 Quitting the Program and Exiting to DOSÐthe Quit Command Suspending the Program and Entering DOSÐthe System CommandOperating the Programmer in Batch Mode Example A±1. Example Configuration/Batch File Understanding the Batch Mode FileExecutable Batch Commands Batch File Command Rules and DescriptionsDefaultable Commands Nonexecutable Batch CommandsBatch Mode Status Messages Operating the Programmer in Batch Mode Error Messages Invalid programming range ± Retry, Abort Error Message DescriptionsInvalid Vcc chosen ± Retry, Abort These error messages are specific to the gang programmers Table C±1. Valid Configuration Parameters Configuration ParametersConfiguration Parameters Using Keystroke Capture Files Table D±1. Valid Nonprintable Characters Example D±1. Keystroke File Example.key$INS Using Keystroke Capture Files Show ID software revision information, 2-9 description IndexConnecting to a pc, 1-9 connecting to an XDS Index Index-4 Important Notice