Debug support (DBG) RM0444
1366/1390 RM0444 Rev 5
It also includes debug features dedicated to the STM32G0x1:
• Flexible debug pinout assignment
• MCU debug box (support for low-power modes, control over peripheral clocks, etc.)
Note: For further information on debug functionality supported by the Arm Cortex
®
-M0+ core, refer
to the Cortex
®
-M0+ Technical Reference Manual (see Section 40.2: Reference Arm
documentation).
40.2 Reference Arm documentation
• Cortex
®
-M0+ Technical Reference Manual (TRM), available from
http://infocenter.arm.com
• Arm Debug Interface V5
• Arm CoreSight Design Kit revision r1p1 Technical Reference Manual
40.3 Pinout and debug port pins
The STM32G0x1 MCUs are available in various packages with different numbers of
available pins.
40.3.1 SWD port pins
Two pins are used as outputs for the SW-DP as alternate functions of general purpose I/Os.
These pins are available on all packages.
40.3.2 SW-DP pin assignment
After reset (SYSRESETn or PORESETn), the pins used for the SW-DP are assigned as
dedicated pins which are immediately usable by the debugger host.
However, the MCU offers the possibility to disable the SWD port and can then release the
associated pins for general-purpose I/O (GPIO) usage. For more details on how to disable
SW-DP port pins, refer to
Section 7.3.2: I/O pin alternate function multiplexer and mapping
on page 234.
Table 247. SW debug port pins
SW-DP pin name
SW debug port
Pin
assignment
Type Debug assignment
SWDIO I/O Serial Wire Data Input/Output PA13
SWCLK I Serial Wire Clock PA14