CPU32 Emulation 117
Chapter 7: Using the Emulator with a Debugger
Using the Green Hills debugger
6 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 a7=<address>
OR
• * Include the following line in an initialization script:
target reg a7=<address>
7 Download the code:
In the Debugger window, select
Remote
➞
LoadProgram
.
The Debugger command pane indicates that the code has been
downloaded to the target.
Comments to this Manuals