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
Содержание 16610A
Страница 13: ...Contents 11 Glossary Index ...
Страница 14: ...12 Contents ...
Страница 15: ...13 1 Installing the Emulation Probe ...
Страница 44: ...42 Chapter 1 Installing the Emulation Probe Updating Emulation Probe Firmware ...
Страница 45: ...43 2 Installing the Emulation Module ...
Страница 64: ...62 Chapter 2 Installing the Emulation Module Preparing for a Debugger ...
Страница 65: ...63 3 Connecting to a Target System ...
Страница 74: ...72 Chapter 3 Connecting to a Target System Making the Target System Connection ...
Страница 76: ...74 Chapter 3 Connecting to a Target System Making the Target System Connection ...
Страница 77: ...75 4 Configuring the Emulation Probe Module ...
Страница 91: ...89 5 Using Debuggers ...
Страница 119: ...117 6 Solving Problems ...
Страница 149: ...147 7 Specifications and Characteristics ...
Страница 153: ...151 8 Service Information ...
Страница 166: ...164 Index ...