48
8.11 Go (Run) G
Format:
G [StartAddress|* [Breakpoint] ]
Command to run a program on the MCU. If StartAddress is not specified, or an asterisk is used, then
the current value of the 'T/G' address will be used. If StartAddress is specified, or an asterisk is used,
then a Breakpoint (page 17) may be specified at which execution will halt. Programs may be started
at an address in RAM or FLASH.
The user is responsible for ensuring that the breakpoint address is located at the first byte of an actual
instruction. The Unassemble command (page 62) may help to locate this.
The breakpoint set as a result of issuing the G command will appear in black the Start/Break Point
read-only list box. When the MCU program is executing but not yet halted at a breakpoint, the status
bar will display the word 'Running'. When halted, the status display will change to 'Monitor Mode', and
the breakpoint information will be highlighted in red, with the address of the next instruction to be
executed on the line below.
Issuing the G command without any arguments will set the program running at the current value of
the program counter. If no breakpoint is set (Break Register = 0000), there is no way for Xplor8 to
regain control, unless the user's program terminates in a SWI instruction.
Issuing the G command with a single argument will set the program running at that address, without
setting a new breakpoint.
If your program has stopped at a breakpoint, and you wish to continue to another breakpoint, type:
G * NextBreakAddr
where the asterisk is a placeholder for the current value of the program counter.
If you are stopped at a breakpoint and type 'G' alone, or type:
G * *
so as to continue on to break at the same address that you are starting from, Xplor8 first executes a
private trace operation, then resets the breakpoint at your original starting address.
Comentários a estes Manuais