Segger J-Link Manuel utilisateur

A product of SEGGER Microcontroller GmbH & Co. KG
J-Link
Document RM08001-R2
Date: June 30, 2008
Reference manual for
J-Link USB Protocol
www.segger.com

2 CHAPTER
RM08001 Reference manual for J-Link USB Protocol © 2008 SEGGER Microcontroller GmbH & Co. KG
Disclaimer
Specifications written in this document are believed to be accurate, but are not guar-
anteed to be entirely free of error. The information in this manual is subject to
change for functional or performance improvements without notice. Please make sure
your manual is the latest edition. While the information herein is assumed to be
accurate, SEGGER MICROCONTROLLER GmbH & Co. KG (the manufacturer) assumes
no responsibility for any errors or omissions. The manufacturer makes and you
receive no warranties or conditions, express, implied, statutory or in any communica-
tion with you. The manufacturer specifically disclaims any implied warranty of mer-
chantability or fitness for a particular purpose.
Copyright notice
You may not extract portions of this manual or modify the PDF file in any way without
the prior written permission of the manufacturer. The software described in this doc-
ument is furnished under a license and may only be used or copied in accordance
with the terms of such a license.
©2008 SEGGER Microcontroller GmbH & Co. KG, Hilden / Germany
Trademarks
Names mentioned in this manual may be trademarks of their respective companies.
Brand and product names are trademarks or registered trademarks of their respec-
tive holders.
Contact address
SEGGER Microcontroller GmbH & Co. KG
In den Weiden 11
D-40721 Hilden
Germany
Tel.+49 2103-2878-0
Fax.+49 2103-2878-28
Email: support@segger.com
Internet: http://www.segger.com
Document revisions
For further information on topics or routines not yet specified, please contact us.
Revision Date By Explanation
0 080523 OO Initial version
1 080526 OO
Chapter "Background information": Added JTAG
buffer description.
Some minor changes.
2 080527 OO Some minor changes.

RM08001 Reference manual for J-Link USB Protocol © 2008 SEGGER Microcontroller GmbH & Co. KG
3
About this document
Assumptions
This document assumes that you already have a solid knowledge of the following:
• The software tools used for building your application (assembler, linker, C com-
piler)
• The target processor.
How to use this manual
This manual explains all the functions and macros that the product offers. It assumes
you have a working knowledge of the C language. Knowledge of assembly program-
ming is not required.
Typographic conventions for syntax
This manual uses the following typographic conventions:
Style Used for
Body Body text.
Keyword Text that you enter at the command-prompt or that appears on the
display (that is system functions, file- or pathnames).
Parameter Parameters in API functions.
Sample Sample code in program examples.
Reference Reference to chapters, sections, tables and figures or other docu-
ments.
GUIElement Buttons, dialog boxes, menu names, menu commands.
Emphasis Very important sections
Table 1.1: Typographic conventions

4
RM08001 Reference manual for J-Link USB Protocol © 2008 SEGGER Microcontroller GmbH & Co. KG

RM08001 Reference manual for J-Link USB Protocol © 2008 SEGGER Microcontroller GmbH & Co. KG
5
1 Introduction......................................................................................................................7
1.1 How to use this manual ..............................................................................8
1.2 Purpose of this document ...........................................................................8
1.3 Features of J-Link ARM ...............................................................................8
2 Licensing..........................................................................................................................9
2.1 License terms..........................................................................................10
3 Background information.................................................................................................11
3.1 JTAG scan chain values ............................................................................12
3.2 Emulator configuration .............................................................................14
3.3 JTAG data buffers ....................................................................................15
4 USB communication ......................................................................................................17
4.1 Communication protocol overview.............................................................. 18
4.2 Protocol commands..................................................................................19
4.3 Get system information functions...............................................................21
4.4 Get state information functions..................................................................27
4.5 JTAG & Hardware functions .......................................................................31
4.6 Target functions ......................................................................................45
4.7 Configuration functions............................................................................. 54
5 Glossary.........................................................................................................................57
6 Literature and references...............................................................................................61
Table of Contents

6
RM08001 Reference manual for J-Link USB Protocol © 2008 SEGGER Microcontroller GmbH & Co. KG

RM08001 Reference manual for J-Link USB Protocol © 2008 SEGGER Microcontroller GmbH & Co. KG
7
Chapter 1
Introduction
This chapter describes the purpose of this manual and the J-Link ARM emulator which
uses the J-Link USB Protocol.

8 CHAPTER 1 Introduction
RM08001 Reference manual for J-Link USB Protocol © 2008 SEGGER Microcontroller GmbH & Co. KG
1.1 How to use this manual
This manual describes the J-Link USB Protocol used in J-Link products and how it is
used.
In the course of this document the J-Link ARM is refered to as emulator.
1.2 Purpose of this document
The purpose of this document is to allow developers of open source software such as
OpenOCD to write software which uses J-Link as debug interface.
This document gives an overview about the J-Link USB communication and how it
can be used in your application. Sample communications to almost each command
description should give you an idea of the data transferred via USB between J-Link
and host.
1.3 Features of J-Link ARM
J-Link provides a feature rich list of functions to simplify the
debugging process. All important functions which are used by
the SEGGER software are useable via the USB protocol.
J-Link ARM has many features:
•USB 2.0 interface
•Any ARM7/ARM9 core supported, including thumb mode
•Automatic core recognition
•Maximum JTAG speed 12 MHz
•Download speed up to 720 Kbytes/second *
•DCC speed up to 800 Kbytes/second *
•No power supply required, powered through USB
•Auto speed recognition
•Support for adaptive clocking
•All JTAG signals can be monitored, target voltage can be mea-
sured
•Support for multiple devices
•Fully plug and play compatible
•A Standard 20-pin JTAG connector
•Optional 14-pin JTAG adapter available
•Wide target voltage range: 1.2V - 3.3V
•Optional adapter for 5V targets available
* = Measured with J-Link Rev.5, ARM7 @ 50 MHz, 12MHz JTAG speed.

RM08001 Reference manual for J-Link USB Protocol © 2008 SEGGER Microcontroller GmbH & Co. KG
9
Chapter 2
Licensing
This chapter gives information about the licensing terms under which this document
is published.

10 CHAPTER 2 Licensing
RM08001 Reference manual for J-Link USB Protocol © 2008 SEGGER Microcontroller GmbH & Co. KG
2.1 License terms
The information in this document may only be used when fully agreeing to the terms
mentioned in this chapter.
Please note that the SEGGER J-Link software is copyrighted and may be used with
original SEGGER J-Links and legal OEM versions only. For details, please refer to the
License terms in License.txt which comes with the J-Link software and documenta-
tion pack.
In case of doubt, please contact us: info@segger.com .
2.1.1 What you may do
You may use the information contained in this document to add support for the wide
spread SEGGER J-Link ARM emulator and OEM versions in open source software.
2.1.2 What you are not allowed to do
You are not allowed to use the information in this document to
• build J-Link clones
• build J-Link compatible emulators.
Autres manuels pour J-Link
8
Table des matières
Autres manuels Segger Carte mère
Manuels Carte mère populaires d'autres marques

Telit Wireless Solutions
Telit Wireless Solutions SL869-3DR Manuel utilisateur

Gigabyte
Gigabyte GA-9IVDT Manuel utilisateur

Texas Instruments
Texas Instruments ADS8372EVM Manuel utilisateur

Commell
Commell MS-C73 Manuel utilisateur

IBT Technologies
IBT Technologies MB860 Manuel utilisateur

Nvidia
Nvidia TEGRA DG-04927-001_V01 Manuel utilisateur














