User`s guide
118 CPU32 Emulation
Chapter 7: Using the Emulator with a Debugger
Using the Green Hills debugger
To configure the emulator, analysis probe, and
target using an initialization script
You can use an initialization script to configure the emulator and set up
your target system. If you will always be using the same configuration,
this way will save time and reduce errors.
1
Save the configuration commands in a text file, one command
per line.
Green Hills provides an example initialization sequence in the file
hpserv.rc in the "hpdemo" directory.
2
To run the script, enter the following command in the Debugger
command pane:
<filename
Example: simple configuration script
Create a file with the following lines:
remote hpserv hplogic1
target cf proc=68360
_INIT_SP=0x10000
Save the file in the MULTI startup directory and name it hpserv.rc.
To run the script, enter the following command in the Debugger
command pane:
<hpserv.rc
When run, this script will:
• Connect to the target through the emulation module in a logic
analysis system frame called "hplogic1".
• Set the processor type.
• Initialize the stack pointer.