Page 1
J-Link Reference manual for J-Link USB Protocol Document RM08001-R2 Date: June 30, 2008 A product of SEGGER Microcontroller GmbH & Co. KG www.segger.com...
Page 2
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.
CHAPTER 1 Introduction 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. 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.
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-...
Allows usage of more than one 0xFF : Default J-Link at the same time. 0x01 - 0x03 0xFF Reserved 0xFFFFFFFF : Default, on if J-Link KS 0x04 - 0x07 0x00000000 : Off Kickstart power on JTAG-pin 19. 0x00000001 : On 0x08 - 0x1F 0xFF Reserved IP-Address in hex format.
The J-Link has three JTAG data buffers. Two of these are output buffers used for TMS and TDI, the third is an input buffer for TDO data. To work with the J-Link, an under- standing of the buffers and the way the data is stored in them is quite useful.
Depending on the operating system being used, there are different ways to com- muincate with J-Link via USB. One way (under a Windows operating system) is to use the J-Link USB driver. One other option is to use "USBLib", which is a freeware pack- age available under different operating systems.
Page 26
The hardware version is returned in the following format. Mmmrr This stands for: Major version mm: Minor version Revision Example: The version 52000 stands for a J-Link Version 5.2 . If the capability EMU_CMD_GET_HW_VERSION is not enabled is always 0x00 . Version Sample communication Retrieve hardware version command.
CHAPTER 2 USB communication Configuration functions These commands are used to configure the emulator. 2.7.1 EMU_CMD_READ_CONFIG Description Reads the emulator configuration from the J-Link. Command Direction Data Name Explanation H->E Command: 0xF2 1 * U8 Table 2.59: EMU_CMD_READ_CONFIG command overview...
Page 55
2.7.2 EMU_CMD_WRITE_CONFIG Description Writes the emulator configuration to the J-Link. Command Direction Data Name Explanation H->E Command: 0xF3 1 * U8 Emulator H->E The new emulator configuration. 256 * U8 configuration Table 2.61: EMU_CMD_WRITE_CONFIG communication overview Response Sample communication Send emulator configuration command.
Page 58
Glossary Adaptive clocking A technique in which a clock signal is sent out by J-Link / J-Trace. J-Link / J-Trace waits for the returned clock before generating the next clock pulse. The technique allows the J-Link / J-Trace interface unit to adapt to differing signal drive capabilities and differing cable lengths.
Page 59
TDO. The electronic signal input to a TAP controller from the data source (upstream). Usu- ally, this is seen connecting the J-Link / J-Trace Interface Unit to the first TAP control- ler. The electronic signal output from a TAP controller to the data sink (downstream).
Page 62
CHAPTER 4 Literature and references Reference Title Comments This document gives information about using the SEGGER J-Link / J- SEGGER J-Link / J-Trace User's [UM08001] Trace ARM. Guide. It is publicly available from SEGGER (www.segger.com). This document contains some hard-...
Need help?
Do you have a question about the J-Link and is the answer not in the manual?
Questions and answers