4
Debug management
4.1
Introduction
The host/target interface is the hardware equipment that connects the host to the application board. This interface
is made of three components: a hardware debug tool, an SWD connector and a cable connecting the host to the
debug tool.
Figure 9
shows the connection of the host to the discovery board (STM32C0316-DK), which embeds the debug
tools (ST-LINK). Consequently, it can be directly connected to the PC through a USB cable.
4.2
SWD (serial wire debug) port
The STM32C0 series core integrates the serial wire debug port (SW-DP), an Arm
port with a 2-pin (clock + data) interface to the debug access port.
4.3
Pinout and debug port pins
The microcontrollers of the STM32C0 series are offered in packages with varying numbers of pins.
4.3.1
Serial wire debug (SWD) pin assignment
The same SWD pin assignment is available on all STM32C0 Series packages.
SWD pin name
SWDIO
SWCLK
After reset (SYSRESETn or PORESETn), the pins used for the SWD are assigned as dedicated pins,
immediately usable by the debugger host.
The MCU offers the possibility to disable the SWD, therefore releasing the associated pins for general-purpose
I/O (GPIO) usage. For more details on how to disable SWD port, refer to the RM0490 section on I/O pin alternate
function multiplexer and mapping.
AN5673 - Rev 2
Figure 9.
Host-to-board connection
Debug tool
Host PC
Discovery board
Table 3.
Type
I/O
I
SWD connector
SWD port pins
SWD port
Debug assignment
Serial wire data input/output
Serial wire clock
AN5673
Debug management
Power supply
®
standard CoreSight™ debug
Pin assignment
PA13
PA14
page 19/32
Need help?
Do you have a question about the STM32C0 Series and is the answer not in the manual?
Questions and answers