User manual
UM0036 Getting started with STVD
Doc ID 7705 Rev 11 31/385
Figure 10. Debug instrument target port selection
The SWIM debugger has two additional parameters to define the target connection:
1. Out of workspace, you can connect in Hot Plug mode, which means the microcontroller
is not put under reset while initializing the connection. For more details on Hot Plug
mode refer to Section 7.4: In-circuit debugging in hot plug mode (SWIM only).
Figure 11. Hot Plug start debug option
2. When you are inside a workspace and stop debug, by default STVD removes the
software breakpoints (if any, and if possible) and makes the application restart with the
SWIM module OFF on the microcontroller side (see Figure 12). You may change this
default behavior by unchecking the Restart Application checkbox.
Caution: You must choose the behavior before the target is connected (start debug), even though the
behavior only affects the target disconnection (stop debug).
Software breakpoints, if any, remain in Flash memory until reprogrammed.
After a reset the microcontroller needs a SWIM host before it can continue. A power-on
reset is required to escape this state.