Serial wire debug (SWD) pin assignment
| SWD pin | SWD port | Pin assignment | |
|---|---|---|---|
| Type | Debug assignment | ||
| SWDIO | Input/Output | Serial-wire data input/output | PA13 |
| SWCLK | Input | Serial-wire clock | PA14 |
| SWD pin | SWD port | Pin assignment | |
|---|---|---|---|
| Type | Debug assignment | ||
| SWDIO | Input/Output | Serial-wire data input/output | PA13 |
| SWCLK | Input | Serial-wire clock | PA14 |
After reset, the pins used for the SWD are assigned as dedicated pins that can be immediately used by the debugger host. However, the MCU offers the possibility to disable the SWD, therefore releasing the associated pins for GPIO use.
For more details on how to disable SWD port, refer to the section 'I/O pin alternate function multiplexer and mapping section of the reference manual.
The embedded pull-up and pull-down resistors remove the need to add external resistors.

For technical reasons, it is best to use a multilayer printed circuit board PCB, with a separate layer dedicated to the ground (VSS) and another dedicated to the VDD supply.
This provides both good decoupling and good shielding effect. For many applications, cost reasons prohibit the use of this type of board. In this case, the major requirement is to ensure a good structure for the ground and the power supply.
In order to improve analog performance, the user must use separate supply sources for VDD and VDDA, and place the decoupling capacitors as close as possible to the device.
The power supplies must be implemented close to the ground line to minimize the area of the supplies loop. This is because the supply loop acts as an antenna, and acts as the main transmitter and receiver of EMI. All component-free PCB areas must be filled with additional grounding to create a kind of shielding (especially when using single‑layer PCBs).
All power-supply and ground pins must be properly connected to the power supplies. These connections (including pads, tracks, and vias) must have the lowest possible impedance. This is typically achieved with thick track widths and, preferably, the use of dedicated power-supply planes in multilayer PCBs.
In addition, each power supply pair should be decoupled with filtering ceramic capacitors (100 nF) and one single ceramic capacitor (minimum 4.7 μF) connected in parallel.
Some packages use a common VSS for several VDD instead of a pair of power pins (one VSS for each VDD), in that case the capacitors must be between each VDD and the common VSS. These capacitors need to be placed as close as possible to, or below, the appropriate pins on the underside of the PCB. Typical values are 10 nF to 100 nF, but exact values depend on the application requirements.

For these signals, a surrounding ground trace, shorter lengths, and the absence of noisy and sensitive traces nearby (crosstalk effect) improve EMC performance. For digital signals, the best possible electrical margin must be reached for the two logical states and slow Schmitt triggers are recommended to eliminate parasitic states.
All microcontrollers are designed for a variety of applications and often a particular application does not use 100% of the MCU resources.
The reference design shown in the following figures is based on the NUCLEO C562 in the LQFP64 package.
This reference design can be tailored to any STM32C5 device with a different package, using the pin correspondence given in Component references.
See RCC clocks functional description for more details.
The reset signal is active low in the reference design figures shown in Component references.
See Reset and power-supply supervisor for more details.
The user can add a switch on the board to change the boot option but this is optional. On virgin samples the boot address is defined by option bytes (and empty check) and the pads PH2-BOOT0/PB8-BOOT0 are used as GPIO by default.
When waking up from Standby mode, the BOOT pin is sampled, and the user must pay attention to its value.
The reference design shows the connection between the devices and a standard SWD connector.
See Debug management for more details.
It is recommended to connect the RESET pins, so as to be able to reset the application from the tools and also to run RDP regression for debug opening.
See Power supply management for more details.