User manual

Basic debugging features UM0036
160/385 Doc ID 7705 Rev 11
5 Basic debugging features
Once you have built your application for debugging, you can choose your debugging
instrument and enter the Debug context. In this context, STVD provides access to the
debugging features that are supported by your debugging hardware or instrument. Because
debugging instruments support different features, the commands and views that are
available during debugging will vary based on your hardware configuration. For this reason,
you must select your debug instrument before you can start debugging. For instructions, see
Section 5.1: Selecting the debug instrument.
Once you have selected your debug instrument, you are ready to start debugging. The
debugging features described in this section are available for all hardware configurations:
Simulator, DVP2, DVP3, EMU2B (HDS2), ICD and EMU3 emulators and STice. The
following sections tell you about:
Section 5.1: Selecting the debug instrument
Section 5.2: Configuring your target MCU
Section 5.3: Running an application
Section 5.4: Editor debug actions
Section 5.5: Disassembly window
Section 5.6: Online assembler
Section 5.7: Memory window
Section 5.8: Instruction breakpoints
Section 5.9: Data breakpoints
Section 5.12: Watch window
Section 5.10: Call stack window
Section 5.11: Local variables window
Section 5.13: Core registers window
Section 5.14: MSCI tools window
Section 5.15: Symbols browser
Section 5.16: Peripheral registers window
Section 5.17: Memory trace window
Section 5.18: Online commands
Section 5.19: Limitations and discrepancies
For other features that are specific to your debug instrument refer to:
Section 6: Simulator features on page 202 for software simulation without a debug
instrument
Section 7: In-circuit debugging on page 223 for EMU3 with ICC add-on
Section 8: DVP and EMU2 (HDS2) emulator features on page 237 for all DVP and
EMU2 emulators
Section 10: EMU3 emulator features on page 284 — for EMU3 emulators
Section 9: STice features on page 258 — for STice advanced emulation systems