Entering and Debugging Programs

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. You enter the program 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 Debugging Package for Motorola 68K CISC CPUs User’s Manual for complete details of the 166Bug Assembler/Disassembler.

4

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 Debugging Package for Motorola 68K CISC CPUs User’s Manual) and may have been assembled or compiled on the host system. Alternately, the program may have been previously created using the 166Bug 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 MVME166 port 1. (Hardware configuration details are in the section on Installation and Startup in Chapter 3.) The file is downloaded from the host to MVME166 memory by the Load (LO) command.

Another way is by reading in the program from disk, using one of the disk commands (BO, BH, IOP). Once the object code has been loaded into memory, you can set breakpoints if desired and run the code or trace through it.

Yet another way is via the network, using one of the network disk commands (NBO, NBH, NIOP).

Calling System Utilities from User Programs

A convenient way of doing character input/output and many other useful operations has been provided so that you do not have to write these routines into the target code. You can access various 166Bug routines via one of the MC68040 TRAP instructions, using vector #15. Refer to the Debugging Package for Motorola 68K CISC CPUs User’s Manual for details on the various TRAP #15 utilities available and how to invoke them from within a user program.

Preserving the Debugger Operating Environment

This section explains how to avoid contaminating the operating environment of the debugger. 166Bug uses certain of the MVME166 onboard resources and also offboard system memory to contain temporary variables, exception vectors, etc. If you disturb resources upon which 166Bug depends, then the debugger may function unreliably or not at all.

MVME166IG/D2

4-9

Page 79
Image 79
Motorola MVME166D2, MVME166IG/D2 manual Entering and Debugging Programs, Calling System Utilities from User Programs

MVME166IG, MVME166D2, MVME166IG/D2 specifications

The Motorola MVME166IG/D2 is a pioneering embedded computer designed for high-performance applications in industrial and telecom sectors. This versatile computing platform is based on the PowerPC architecture, which ensures efficient processing capabilities and transfer of data, making it suitable for a wide range of applications, including real-time control, data acquisition, and system monitoring.

One of the main features of the MVME166IG/D2 is its powerful processor. The system is equipped with a PowerPC 603e processor, which offers a remarkable performance rate with a clock speed of up to 250 MHz. This high-speed processing capability allows for rapid data handling and processing, which is critical for demanding applications in real-time environments.

The MVME166IG/D2 also stands out due to its modular design. It supports multiple expansion slots that make it adaptable for different user needs. The system can accommodate additional cards or memory modules, allowing for increased versatility and capability in various operational scenarios.

In terms of connectivity, this embedded computer includes multiple communication interfaces such as Ethernet and serial ports, which facilitate seamless data transfer and communication within larger systems. This connectivity is crucial for integrating the device into existing industrial networks or for connecting with sensors and other equipment.

Another noteworthy characteristic of the MVME166IG/D2 is its robust build quality, which is essential for operation in challenging environments. The device is designed to endure high levels of shock and vibration, making it suitable for deployment in applications such as transportation or heavy machinery.

Additionally, the MVME166IG/D2 offers a range of software support which includes various real-time operating systems. This compatibility allows developers to choose the OS that best fits their application's requirements, enhancing the overall utility of the system.

In summary, the Motorola MVME166IG/D2 is a powerful, flexible embedded computing solution that excels in performance, modularity, and reliability. Its advanced features and durable design make it an ideal choice for industries that require precision, speed, and robustness in their computing solutions.