Entering and Debugging Programs

Note

Relative addresses are limited to 1MB (5 digits), regardless of the range of the closest offset register.

Port Numbers

Some 197Bug commands give the user the option to choose the port to be used to input or output. Valid port numbers which may be used for these commands are:

1.MVME197LE EIA-232-D Debug (Terminal Port 0 or 00) (PORT 1 on the MVME197LE P2 connector). Sometimes known as the “console port”, it is used for interactive user input/output by default.

4

2.MVME197LE EIA-232-D (Terminal Port 1 or 01) (PORT 2 on the MVME197LE P2 connector). Sometimes known as the “host port”, this is the default for downloading, uploading, concurrent mode, and transparent modes.

Note

These logical port numbers (0 and 1) are shown in the pinouts of the MVME197 module as “SERIAL PORT 1” and “SERIAL PORT 2”, respectively. Physically, they are all part of connector P2.

Entering and Debugging Programs

There are various ways to enter a user program into system memory for execution. One way is to create the program using the Memory Modify (MM) command with the assembler/disassembler option. The program is entered by the user one source line at a time. After each source line is entered, it is assembled and the object code is loaded to memory. Refer to the MVME197BUG 197Bug Debugging Package User’s Manual for complete details of the 197Bug Assembler/Disassembler.

Another way to enter a program is to download an object file from a host system. The program must be in S-record format (described in the MVME197BUG 197Bug Debugging Package User’s Manual) and may have been assembled or compiled on the host system. Alternately, the program may have been previously created using the 197Bug MM command as outlined above and stored to the host using the Dump (DU) command. A communication link must exist between the host system and the MVME197 port 1. (Hardware configuration details are in the Installation and Start-upsection in the Debugger General Information chapter of this guide). The file is downloaded from the host to MVME197LE memory by the Load (LO) command.

MVME197LEIG/D1

4-5

Page 65
Image 65
Motorola MVME197LE manual Entering and Debugging Programs, Port Numbers