Home / µVision User's Guide


Start Debugging
Home » Debugging » Start Debugging
Start debugging using the menu Debug
— Start/Stop Debug Session. Depending on the options set in the
dialog Options for Target — Debug, the
µVision Debugger loads the application program and executes the
startup code. The screen layout of the last debugging session is
restored.
When program execution stops, µVision opens the source code at
current cursor position or shows the CPU instruction in the
Disassembly window. This behavior can be configured with the option
Do not open matching source file after Run Stop of the dialog
Edit - Configuration - Other
The next executable statement is
marked with a yellow arrow in the Editor and Disassembly window.
Most editor features are available in debug mode. For example,
developers can use the Find command and can correct program errors.
The debug mode differs from the edit mode in the following
aspects:
Multi-core debugging
µVision is capable of multi-core debugging when using Arm Cortex-M
based devices. For every core that you wish to connect to, you need
to open a separate µVision instance. Using the same debug adapter in
each instance, you can connect to the different target cores. In each
instance, select one access port (AP) of the multi-core device. Refer
to the documentation of your debug adapter:
Note
-
The first connected instance of the µVision debugger shows the
standard Status bar. Every other
instance displays Debug: Client
Mode in the Status bar.
-
Tracing is only possible with the first µVision instance. In
client mode, trace is disabled.
-
Some debug settings are not available in client mode (such as
target clock, trace protocol, etc.).
-
Multi-core debug with ULINK2 is only supported in CMSIS-DAP
mode.
Related Knowledgebase Articles