
Menu Bar UM017105-0511
86
Zilog Developer Studio II – ZNEO™
User Manual
Debug Menu
Use the Debug menu to access a number of functions in the ZDS II debugger. Each of
these functions is described in this section. For more information about the Debugger, see
the chapter titled Using the Debugger
on page 327.
Connect to Target. The Connect to Target command starts a debug session and initializes
the communication to the target hardware. This command does not download the software
or reset to main. Use this button to access target registers, memory, and so on, without
loading new code or to avoid overwriting the target’s code with the same code. This com-
mand is not enabled when the target is the simulator.
Download Code. The Download Code command downloads the executable file for the
currently open project to the target for debugging. The command also initializes the com-
munication to the target hardware if it has not been done yet. Use this command anytime
during a debug session. This command is not enabled when the target is the simulator.
When using the Download Code command, the current code on the target will be overwrit-
ten.
Verify Download. Select Verify Download from the Debug menu to determine download
correctness by comparing executable file contents to target memory.
Stop Debugging. Select Stop Debugging from the Debug menu to end the current
debug session. To stop program execution, select the Break command.
Reset. Select Reset from the Debug menu to reset the program counter to the beginning
of the program. If not in Debug mode, a debug session is started. By default and if possi-
ble, the Reset command resets the program counter to
Symbol 'main'. If you deselect the
Reset to
Symbol 'main' (Where Applicable) checkbox on the Debugger tab of the
Options dialog box (see page 102), the program counter resets to the first line of the pro-
gram.
Go. Select Go from the Debug menu to execute project code from the current program
counter. If not in Debug mode when the command is selected, a debug session is started.
Run to Cursor. Select Run to Cursor from the Debug menu to execute the program code
from the current program counter to the line containing the cursor in the active file or the
Disassembly window. The cursor must be placed on a valid code line (a C source line with
a blue dot displayed in the gutter or any instruction line in the Disassembly window).
Break. Select Break from the Debug menu to stop program execution at the current pro-
gram counter.
Komentarze do niniejszej Instrukcji