User`s guide

116 CPU32 Emulation
Chapter 7: Using the Emulator with a Debugger
Using the Green Hills debugger
In the Builder window, click Debug to open the Debugger window, then in
the Debugger window’s command pane, enter:
remote hpserv IP_address
Starting hpserv opens two windows: the Target window and the I/O
window. Commands entered in the Target window are sent directly to
the emulator.
The I/O window sends input (stdin) to and receives output (stdout)
from the target program while it is running.
Note that hpserv connects to the first emulation module (port 6470) in
a logic analysis system frame. You may specify another port by using
the -p option with hpserv. See page 108 for more information on port
numbers.
4
Start the debugger.
If you have not opened the Debugger window yet, click
Debug
in the
Builder window.
5
Configure the emulator and target system.
Before running the target processor, you must configure the HP
emulator for your target system. For example, you may have to set the
BDM clock speed, the reset operation, cache disabling, or other
configuration parameters.
If you are unsure of the configuration needed for your emulator, you
can use the Configuration window in the logic analysis system’s
Emulation Control Interface to explore the configuration options.
Once you know the configuration settings needed for your target
system, you may use one of the following methods to configure the
emulator and target system:
Use the Configuration window in the logic analysis system’s Emulation
Control Interface.
Enter "cf" commands in the Target window.
Use an initialization script.
See “To configure the emulator, analysis probe, and target using an
initialization script” on page 118 for information on saving the
configuration commands in a script.