98
Chapter 5: Using Debuggers
Using the Green Hills Debugger
5
Specify an initialization address for the stack pointer.
This is required if the stack pointer is neither initialized when the
processor is reset nor set in the start-up code generated by the
compiler. If the stack pointer address needs to be initialized:
•
In the debugger’s command pane, enter:
_INIT_SP = <address>
OR
•
In the Target window, enter:
reg r1=<address>
OR
•
Include the following line in an initialization script:
target reg r1= <address>
6
Download the code:
In the Debugger window, select Remote->LoadProgram.
The Debugger command pane indicates that the code has been
downloaded to the target.
To configure using an initialization script
You can use an initialization script to configure the emulation probe/
module 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 also provides an example initialization sequence in the file
MBX800.rc in the “hpdemo” directory.
2
To run the script, enter the following command in the Debugger
Summary of Contents for 16610A
Page 13: ...Contents 11 Glossary Index ...
Page 14: ...12 Contents ...
Page 15: ...13 1 Installing the Emulation Probe ...
Page 44: ...42 Chapter 1 Installing the Emulation Probe Updating Emulation Probe Firmware ...
Page 45: ...43 2 Installing the Emulation Module ...
Page 64: ...62 Chapter 2 Installing the Emulation Module Preparing for a Debugger ...
Page 65: ...63 3 Connecting to a Target System ...
Page 74: ...72 Chapter 3 Connecting to a Target System Making the Target System Connection ...
Page 76: ...74 Chapter 3 Connecting to a Target System Making the Target System Connection ...
Page 77: ...75 4 Configuring the Emulation Probe Module ...
Page 91: ...89 5 Using Debuggers ...
Page 119: ...117 6 Solving Problems ...
Page 149: ...147 7 Specifications and Characteristics ...
Page 153: ...151 8 Service Information ...
Page 166: ...164 Index ...