Contents
What is serial wire debug?
Serial Wire Debug (SWD) is a 2-pin (SWDIO/SWCLK) electrical alternative JTAG interface that has the same JTAG protocol on top. This enables the debugger to become another AMBA bus master for access to system memory and peripheral or debug registers. The Debug Access Port (DAP) is split into two main control units.
What is St-Link debugger?
Description. The ST-LINK/V2 is an in-circuit debugger and programmer for the STM8 and STM32 microcontrollers. The single-wire interface module (SWIM) and JTAG/serial wire debugging (SWD) interfaces are used to communicate with any STM8 or STM32 microcontroller located on an application board.
What is serial wire viewer?
Serial Wire Viewer (SWV) is a data trace feature found on many Arm Cortex-M3, M4, M7, M23, and M33 processors. SWV Data trace frames are output on the Serial Wire Output (SWO) pin at a bit rate that is a ratio of the CPU core clock.
Can You debug a STM32F103 Nucleo board?
The STMicroelectronics STM32F103 (ARM Cortex-M3) Nucleo boards include the on-board ST-Link v2 circuit which allows to debug the board. This circuit is similar to the OpenSDA circuit found on Freescale boards. Unlike the Freescale OpenSDA, the ST-Link is only the ST-Link: it is not possible…
How to use external St-link to debug / program STM32?
By ST Microelectronics, SWCLK, SWDIO, NRST and SWO (and GND of course) are connected to the target MCU. The additional SWO pin is used for debug purposes, you can access printed data with the printf function through this pin with ST-Link Utility.
What was the problem with STM32F103 MCU?
The problem was in pin connections in my custom board: I thought that, in my MCU, Pin 9 (VDDA) is short-circuited with PINs 24-36-48, and Pin 8 (VSSA) with PINs 23-35-47, but it’s not so. I needed to give another 3.3V and GND to VDDA and VSSA and st-link started working.
Is there way to disable debug protections on sm32f103?
The STM32 series of microcontrollers are quite popular with developers owing to good physical/performance properties, as well as a low price point. We willtake a quick look at the STM32F103 (specifically the STM32F103C8T6 IC) — and how you can disable debug protections and CRP.