Refer to the PDF data sheet for device specific package drawings
The device supports both 4-pin JTAG and the 2-pin SWD modes of operation. The device is compatible with all standard Cortex-M4 debuggers available in the market today. The debug logic in the device has been designed to remain minimally intrusive to the application state. In low-power modes, the debugger can override the state of the PSS, thereby gaining access to debug and trace features.
In 2-pin SWD mode, the TDO pin can export serial wire trace output (SWO) data. In addition, the TDI and TDO pins of the device can be reassigned as user I/Os. See Section 6.12.22 and Section 6.12.23 for more details.
If the device has activated debug security, debugger access into the device is completely disabled. The debugger, however, is can still scan the run/halt state of the CPU. Further control of and visibility into the device is possible only after initiating a mass erase of the device flash contents.