*
* Home | Chinese | Japanese * About ARM | Forums | Events | News | Employment | Contact Us | Investors *
dotted rule
* ARM - the architecture for the digital worldARM - the architecture for the digital world
search
*
*
* * *
* MARKETS : PRODUCTS & SOLUTIONS : CONNECTED COMMUNITY : TECHNICAL SUPPORT : DOCUMENTATION *
*
products and solutions
*
*
* * * *
* . Products & Solutions
*
*
  >> Home Page  
*
  . ARM Services  
*
  . RealView Development Tools  
*
  . Fabric IP  
*
  . On-chip Debug & Trace  
*
    ADI v5 Specification  
*
    CoreSight Architecture Specifications  
*
    HSSTP Architecture Specification  
*
    CoreSight On-chip Debug and Real-time Trace Technology  
*
    Embedded Trace Macrocell  
*
    Serial Wire Debug & Serial Wire Viewer  
*
*
  . Multimedia  
*
  . Physical IP  
*
  . Processors  
*
  . Security Solutions  
*
  . Operating System Support  
*
  . Licensing  
*
  >> Markets  
*
  >> Books  
*
*
*

Serial Wire Debug & Serial Wire Viewer

ask ARM *
*
*

Serial Wire Debug (SWD)

Serial Wire Debug provides a debug port for severely pin limited packages, often the case for small package microcontrollers, but also on complex ASICs where limiting pincount 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 core 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-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 - 640 Kbytes/sec @ 8 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 can be switched to other uses when in SWD mode.

SWD is compatible with all ARM cores and any core using JTAG for debug and provides access to debug registers in Cortex cores and the CoreSight debug infrastructure.

SWD

Serial Wire Viewer (SWV)

Serial Wire Viewer provides a single pin output port for instrumentation trace. This allows the target resident code to communicate diagnostic information to the outside world through a single pin that might be all that is available on the final product form factor (e.g. the connector at the base of a mobile phone handset).

  • 32 virtual channels available to the application code
  • simple, efficient packing and serializing protocol
  • clock and data Manchester encoded in to a single output signal
  • mode for connection to a standard UART
  • ideal for data monitoring, viewing OS task switches, 'printf' debugging and call graph profiling

ARM Debug Interface v5

ARM introduced a new debug interface command set with the ARMv7 architecture, as used by the Cortex family of processors. This provides a new standard mechanism for providing debug access to all on-chip resources. The  ADIv5 command set is common to both JTAG and Serial Wire Debug port options offered with ARM Cortex processors, and is compatible with existing ARM cores via the CoreSight Debug Access Port.

  • A unified channel to access debug components over a range of different bus standards. 
  • Maintains access to legacy components which provide a JTAG debug interface. 
  • Provides direct memory mapped access to system memory, independent of the core. 
  • Provides a low level common interface for system and debug power control. 
  • Allows the use of a standard 5-pin JTAG interface or a 2-pin Serial Wire Debug interface with a single port.

Recent Press Releases

Date Press Release
08 November 2007 Zoran Launches Next Generation Digital Processors for Laser Printers, MFPs and Scanners
*

Back to Top

*
SEE ALSO
* * *
  CoreSight On-chip Debug and Real-time Trace Technology>>  
     
  Serial Wire Debug and the CoreSight Debug and Trace Architecture>> (251Kb .pdf)  
     
*
RELATED PRODUCTS
* * *
  CoreSight ™ Components Technical Reference Manual>>  
     
  ADI v5 Specification>>  
     
*
*


* *
* 4 dots * Other ARM Websites
*
shadow *LEGAL STATEMENT shadow