Copyright © 2006, 2009, 2012, 2013 ARM Limited or its affiliates. All rights reserved.
ARM IHI 0031C (ID080813)
ARM
®
Debug Interface
Architecture Specification
ADIv5.0 to ADIv5.2
ii Copyright © 2006, 2009, 2012, 2013 ARM Limited or its affiliates. All rights reserved. ARM IHI 0031C
Non-Confidential ID080813
ARM Debug Interface Architecture Specification
ADIv5.0 to ADIv5.2
Copyright © 2006, 2009, 2012, 2013 ARM Limited or its affiliates. All rights reserved.
Release Information
The following changes have been made to this book.
This book includes information originally published in the ARM
®
Debug Interface v5 Architecture Specification ADIv5.1
Supplement (DSA09-PRDC-008772).
Proprietary Notice
This document is protected by copyright and other related rights and the practice or implementation of the information contained
in this document may be protected by one or more patents or pending patent applications. No part of this document may be
reproduced in any form by any means without the express prior written permission of ARM. No license, express or implied, by
estoppel or otherwise to any intellectual property rights is granted by this document unless specifically stated.
Your access to the information in this document is conditional upon your acceptance that you will not use or permit others to use
the information for the purposes of determining whether implementations infringe any third party patents.
THIS DOCUMENT IS PROVIDED “AS IS”. ARM PROVIDES NO REPRESENTATIONS AND NO WARRANTIES,
EXPRESS, IMPLIED OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MER-CHANTABILITY, SATISFACTORY QUALITY, NON-INFRINGEMENT OR FITNESS FOR A PARTICULAR
PURPOSE WITH RESPECT TO THE DOCUMENT. For the avoidance of doubt, ARM makes no representation with respect to,
and has undertaken no analysis to identify or understand the scope and content of, third party patents, copyrights, trade secrets, or
other rights.
This document may include technical inaccuracies or typographical errors.
TO THE EXTENT NOT PROHIBITED BY LAW, IN NO EVENT WILL ARM BE LIABLE FOR ANY DAMAGES,
INCLUDING WITHOUT LIMITATION ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, PUNITIVE, OR
CONSEQUENTIAL DAMAG-ES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING
OUT OF ANY USE OF THIS DOCUMENT, EVEN IF ARM HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
This document consists solely of commercial items. You shall be responsible for ensuring that any use, duplication or disclosure
of this document complies fully with any relevant export laws and regulations to assure that this document or any portion thereof
is not exported, directly or indirectly, in violation of such export laws. Use of the word “partner” in reference to ARM’s customers
is not intended to create or refer to any partnership relationship with any other company. ARM may make changes to this document
at any time and without notice.
If any of the provisions contained in these terms conflict with any of the provisions of any signed written agreement covering this
document with ARM, then the signed written agreement prevails over and supersedes the conflicting provisions of these terms.
Words and logos marked with ® or ™ are registered trademarks or trademarks of ARM Limited or its affiliates in the EU and/or
else-where. All rights reserved. Other brands and names mentioned in this document may be the trademarks of their respective
owners. No license is granted to you hereunder to use the trademarks of ARM Limited or its affiliates.
Figure 3-3 on page 3-72 reproduced with permission IEEE Std 1149.1-1990 IEEE Standard Test Access Port and Boundary Scan
Architecture Copyright © 2006, by IEEE. The IEEE disclaims any responsibility or liability resulting from the placement and use
in the described manner.
ARM Limited. Company 02557590 registered in England.
110 Fulbourn Road, Cambridge, England CB1 9NJ.
LES-PRE-20350
Change History
Date Issue Confidentiality Change
8 February 2006 A Non-Confidential First issue, for ADIv5.
14 May 2012 B Confidential Beta Second issue, for ADIv5.0 to ADIv5.2.
08 August 2013 C Non-Confidential Final Third issue, for ADIv5.0 to ADIv5.2.
ARM IHI 0031C Copyright © 2006, 2009, 2012, 2013 ARM Limited or its affiliates. All rights reserved. iii
ID080813 Non-Confidential
Confidentiality Status
This document is Non-Confidential. Any use by you is subject to the terms of the agreement between you and ARM or the terms
of the agreement between you and the party authorised by ARM to disclose this document to you.
Product Status
The information in this document is final, that is for a developed product.
Web Address
http://www.arm.com
iv Copyright © 2006, 2009, 2012, 2013 ARM Limited or its affiliates. All rights reserved. ARM IHI 0031C
Non-Confidential ID080813
ARM IHI 0031C Copyright © 2006, 2009, 2012, 2013 ARM Limited or its affiliates. All rights reserved. v
ID080813 Non-Confidential
Contents
ARM Debug Interface Architecture Specification
ADIv5.0 to ADIv5.2
Preface
About this book ............................................................................................................ x
Using this book ........................................................................................................... xi
Conventions ............................................................................................................... xii
Additional reading ..................................................................................................... xiv
Feedback ................................................................................................................... xv
Chapter 1 Introduction
1.1 About the ARM Debug Interface version 5 (ADIv5) ............................................... 1-18
1.2 The function of the ARM Debug Interface .............................................................. 1-20
1.3 The subdivisions of an ARM Debug Interface v5 implementation ......................... 1-22
1.4 The external interface, the Debug Port (DP) .......................................................... 1-23
1.5 The resource interface, the Access Ports (APs) .................................................... 1-24
1.6 Design choices and implementation examples ...................................................... 1-28
Chapter 2 The Debug Port (DP)
2.1 Common Debug Port features ............................................................................... 2-34
2.2 DP architecture versions ........................................................................................ 2-40
2.3 DP register descriptions ......................................................................................... 2-45
2.4 System and debug power and debug reset control ............................................... 2-62
Chapter 3 The JTAG Debug Port (JTAG-DP)
3.1 The Debug TAP State Machine introduction .......................................................... 3-70
3.2 The scan chain interface ........................................................................................ 3-71
3.3 IR scan chain and IR instructions .......................................................................... 3-74
3.4 DR scan chain and DR registers ............................................................................ 3-78