Login

Serial Wire Debug

Serial Wire Debug Image (View Larger Serial Wire Debug Image)
Serial Wire Debug technology is available as part of the CoreSight™ Debug Access Port and provides a 2-pin debug port, the low pin count and high-performance alternative to JTAG.

2-pin Debug Port

Serial Wire Debug (SWD) provides a debug port for severely pin limited packages, often the case for small package microcontrollers but also complex ASICs where limiting pin-count is critical and can be the controlling factor in device costs.

SWD replaces the 5-pin JTAG port with a clock + single bi-directional data pin, providing all the normal JTAG debug and test functionality plus real-time access to system memory without halting the processor or requiring any target resident code. SWD uses an ARM standard bi-directional wire protocol, defined in the ARM Debug Interface v5, to pass data to and from the debugger and the target system in a highly efficient and standard way. As a standard interface for ARM processor-based devices, the software developer can count on a wide choice of interoperable tools from ARM and third party tool vendors.

  • Only 2 pins required - vital for very low connectivity devices or packages 
  • Provides debug and test communication to JTAG TAP controllers
  • Enables the debugger to become another AMBA bus master for access to system memory and peripheral or debug registers
  • High performance data rates - 4 Mbytes/sec @ 50 MHz
  • Low power - no extra power or ground pins required
  • Small silicon area - 2.5k additional gates
  • Low tools costs, $100 build costs - may be built in to evaluation boards
  • Reliable - built in error detection
  • Safe - protection from glitches on pins when tools not connected

SWD provides an easy and risk free migration from JTAG as the two signals, SWDIO and SWCLK, are overlaid on the TMS and TCK pins, allowing for bi-modal devices that provide the other JTAG signals. These extra JTAG pins are available for other uses when in SWD mode.

SWD is compatible with all ARM processors and any processor using JTAG for debug and provides access to debug registers in Cortex™ processors (A,R,M) and the CoreSight debug infrastructure.   

Serial Wire technology is today a part of mass production devices such as the ST STM32 microcontroller.

Single Debug Port for Multi-chip Products

ARM Multi-drop SWD technology brings the benefits of SWD to complex, multi-processor based SoCs by enabling an simultaneous access to an unlimited number of devices through a single connection, providing complex device developers with a low power 2-pin debug and trace solution. This is particularly important for connectivity constrained products, such as mobile phones, where multi-die and multiple chips are common.

The Multi-drop SWD is fully backwards compatible, retaining existing single point-to-point host equipment connections and permits a device to power down completely while that device is not selected, reducing power consumption.

Serial Wire debug with multi drop support is available to all CoreSight licensees under their maintenance program.

Serial Wire Debug white paper

Learn more about Serial Wire Debug and low pin-count debug interfaces requirements.

Low pin-count debug interfaces for multi-device systems - SWD white paper

 
Maximise


Cookies

We use cookies to give you the best experience on our website. By continuing to use our site you consent to our cookies.

Change Settings

Find out more about the cookies we set