ARM Technical Support Knowledge Articles

How do I select JTAG or SWD (Serial Wire Debug) debug protocol?

Applies to: Debug Access Port (DAP)

Answer

The SWJ-DP component supports both protocols - Serial Wire and JTAG. The selector is part of the SWJ-DP.

The default protocol at power-up is JTAG, so if you want to use Serial Wire, you need to use the TCK and TMS to scan in a special 'key', which is a sequence of TMS values which has no effect for a pure JTAG TAP but is recognised by a SWJ-DP TAP as the signal to switch into Serial Wire mode.

The key sequences for switching to Serial Wire mode and back again are described in section 6.2 of the

ARM Debug Interface v5 Architecture Specification Supplement

ADI v5.1 Supplement

which can be found at:

http://infocenter.arm.com/help/index.jsp

-> CoreSight on-chip trace and debug

  -> Architecture specifications

    -> ARM Debug Interface v5 Architecture Specification Supplement

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential