EasyManua.ls Logo

Segger J-Link Series User Manual

Segger J-Link Series
274 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
Page #1 background imageLoading...
Page #1 background image
A product of SEGGER Microcontroller GmbH & Co. KG
www.segger.com
J-Link / J-Trace
User Guide
Software Version V4.51a
Manual Rev. 0
Document: UM08001
Date: June 6, 2012

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Segger J-Link Series and is the answer not in the manual?

Segger J-Link Series Specifications

General IconGeneral
Operating System SupportWindows, Linux, macOS
InterfaceUSB
Supported ArchitecturesARM, Cortex, RX, PowerPC, Renesas
Debug ProtocolsJTAG, SWD
Voltage Range1.2V to 5.0V

Summary

1 Introduction

1.1 Requirements

Specifies the necessary host and target system configurations for J-Link/J-Trace operation.

1.2 Supported OS

Lists the operating systems compatible with J-Link/J-Trace software.

1.3 J-Link / J-Trace models

Details the different models of J-Link and J-Trace available.

1.3.1 Model comparison

Compares hardware and software features across various J-Link/J-Trace models.

1.5 Supported CPU cores

Lists the CPU cores that J-Link/J-Trace has been tested with.

1.6 Built-in intelligence for supported CPU-cores

Explains how J-Link supports CPU cores via firmware or PC-side intelligence.

1.7 Supported IDEs

Lists Integrated Development Environments (IDEs) compatible with J-Link/J-Trace.

2 Licensing

2.1 Introduction

Introduces J-Link licensing options and software enhancements.

2.3 License types

Describes the three types of licenses: Built-in, Key-based, and Device-based.

2.3.3 Device-based license

Details the free, device-specific license activation process.

2.3.3.2 Device list

Provides a list of devices supported by the device-based license.

2.5 Original SEGGER products

Lists original SEGGER products for which J-Link software is licensed.

2.5.1 J-Link

Describes the J-Link product and its included licenses.

2.5.3 J-Link Pro

Details the J-Link Pro product and its comprehensive licenses.

2.8 Illegal Clones

Warns against and describes illegal J-Link clones and their prohibited use.

3 J-Link and J-Trace related software

3.1 J-Link related software

Provides an overview of J-Link software components and their descriptions.

3.1.1 J-Link software and documentation package

Details the applications included in the J-Link software package.

3.2 J-Link software and documentation package in detail

Offers in-depth explanations of the J-Link software package components.

3.2.1 J-Link Commander (Command line tool)

Explains the functionality and usage of the J-Link Commander tool.

3.2.5 J-Link TCP/IP Server (Remote J-Link / J-Trace use)

Describes the TCP/IP server for remote J-Link/J-Trace access.

3.2.7 J-Flash ARM (Program flash memory via JTAG)

Details how to use J-Flash ARM for programming flash memory.

3.4 Additional software packages in detail

Provides details on additional software packages available.

3.4.2 J-Link Software Developer Kit (SDK)

Explains the J-Link SDK for custom application development.

3.5 Using the J-LinkARM.dll

Guides on utilizing the J-LinkARM.dll in applications.

3.5.2 Updating the DLL in third-party programs

Covers updating the J-LinkARM.dll in external programs.

4 Setup

4.1 Installing the J-Link ARM software and documentation pack

Provides a step-by-step guide for installing the J-Link software package.

4.2 Setting up the USB interface

Explains how to set up and verify the USB connection for J-Link.

4.2.1 Verifying correct driver installation

Guides on how to confirm the J-Link USB driver is installed correctly.

4.2.2 Uninstalling the J-Link USB driver

Provides instructions for uninstalling the J-Link USB driver.

4.3 Setting up the IP interface

Covers the configuration of the IP interface for network connectivity.

4.3.1 Configuring J-Link using J-Link Configurator

Explains configuration using the J-Link Configurator tool.

4.5 J-Link Configurator

Introduces the J-Link Configurator utility for managing devices.

4.5.1 Configure J-Links using the J-Link Configurator

Step-by-step guide to configuring J-Links with the Configurator.

4.6 J-Link USB identification

Explains methods for identifying J-Link devices via USB.

4.6.1 Connecting to different J-Links connected to the same host PC via USB

Guides on connecting multiple J-Links to a single PC.

5 Working with J-Link and J-Trace

5.1 Connecting the target system

Details the process of connecting J-Link/J-Trace to the target system.

5.2 Indicators

Explains the meaning of the LEDs on the J-Link device.

5.3 JTAG interface

Covers the usage and configuration of the JTAG interface.

5.3.1 Multiple devices in the scan chain

Explains how to handle multiple devices in the JTAG scan chain.

5.3.4 JTAG Speed

Details the configuration options for JTAG speed.

5.4 SWD interface

Explains the Serial Wire Debug (SWD) interface and its usage.

5.5 Multi-core debugging

Guides on performing multi-core debugging with J-Link.

5.5.2 Using multi-core debugging in detail

Provides detailed steps for multi-core debugging configuration.

5.5.3 Things you should be aware of

Highlights important considerations for multi-core debugging.

5.7 J-Link control panel

Overview of the J-Link control panel application.

5.7.1 Tabs

Describes the different tabs available in the J-Link control panel.

5.7.1.2 Settings

Details the settings configurable within the control panel.

Section: Flash download

Covers settings related to flash download functionality.

Section: Flash breakpoints

Explains settings for flash breakpoint functionality.

5.8 Reset strategies

Explains various reset strategies for target devices.

5.8.1 Strategies for ARM 7/9 devices

Details reset strategies specific to ARM 7/9 devices.

5.8.2 Strategies for Cortex-M devices

Details reset strategies for Cortex-M devices.

5.10 J-Link script files

Guides on creating and using J-Link script files for customization.

5.10.7 Executing J-Link script files

Explains how to execute J-Link script files in different environments.

5.11 Command strings

Covers customizing J-Link behavior using command strings.

5.11.1 List of available commands

Lists and describes available command strings for J-Link.

5.11.1.13 SetResetType

Command to select the target reset strategy.

6 Flash download

6.1 Introduction

Introduces the J-Link DLL's flash download feature.

6.3 Supported devices

Lists devices supported for flash download.

6.4 Setup for various debuggers (internal flash)

Explains setup for internal flash download in common debuggers.

6.4.1 IAR Embedded Workbench

Details setup for flash download in IAR Embedded Workbench.

6.4.2 Keil MDK

Details setup for flash download in Keil MDK.

6.4.3 J-Link GDB Server

Explains setup for flash download using J-Link GDB Server.

6.5 Setup for various debuggers (CFI flash)

Explains setup for CFI flash download in debuggers.

6.5.1 IAR Embedded Workbench / Keil MDK

Setup for CFI flash in IAR EW / Keil MDK.

7 Flash breakpoints

7.1 Introduction

Introduces the flash breakpoints feature.

7.2 Licensing

Covers licensing requirements for flash breakpoints.

7.2.1 24h flash breakpoint trial license

Explains the 24-hour trial license for flash breakpoints.

7.3 Supported devices

Lists devices that support flash breakpoints.

7.4 Setup & compatibility with various debuggers

Details setup and compatibility for flash breakpoints across debuggers.

7.4.1 Setup

Covers the setup process for flash breakpoints.

7.4.2 Compatibility with various debuggers

Lists debuggers compatible with flash breakpoints.

8 RDI

8.1 Introduction

Introduces the Remote Debug Interface (RDI) standard.

8.3 Setup for various debuggers

Guides on setting up J-Link RDI with different debuggers.

8.3.1 IAR Embedded Workbench IDE

Setup steps for using J-Link RDI with IAR Embedded Workbench.

8.3.2 ARM AXD (ARM Developer Suite, ADS)

Setup steps for using J-Link RDI with ARM AXD.

8.3.3 ARM RVDS (RealView developer suite)

Setup steps for using J-Link RDI with ARM RVDS.

8.3.5 KEIL MDK (µVision IDE)

Setup steps for using J-Link RDI with Keil MDK.

8.4 Configuration

Details the general configuration process for J-Link RDI.

8.4.4 Configuration dialog

Explains the options within the RDI configuration dialog.

8.4.4.1 General tab

Covers settings in the General tab of the RDI configuration.

8.4.4.4 Flash tab

Details settings related to flash programming in the RDI config.

8.4.4.5 Breakpoints tab

Explains breakpoint settings in the RDI configuration.

8.4.4.6 CPU tab

Covers CPU-specific settings in the RDI configuration.

9 Device specifics

9.1 Analog Devices

Lists specific MCUs from Analog Devices tested with J-Link.

9.1.1 ADuC7xxx

Details specific handling for ADuC7xxx series MCUs.

9.1.1.1 Software reset

Explains the software reset strategy for ADuC7xxx devices.

9.2 ATMEL

Lists specific devices from ATMEL tested with J-Link.

9.2.1 AT91SAM7

Details specifics for AT91SAM7 series, including reset and init.

9.2.1.1 Reset strategy

Describes the reset strategy for AT91SAM7 devices.

9.6 Freescale

Lists specific devices from Freescale tested with J-Link.

9.6.2 Unlocking

Covers the procedure to unlock Freescale Kinetis devices.

9.10 NXP

Lists specific devices from NXP tested with J-Link.

9.10.1 LPC ARM7-based devices

Details specifics for NXP LPC ARM7-based devices.

9.10.1.1 Fast GPIO bug

Provides a workaround for the Fast GPIO bug on LPC devices.

9.14 ST Microelectronics

Lists specific devices from ST Microelectronics tested with J-Link.

9.14.2 STM32F10xxx

Details specifics for STM32F10xxx devices.

9.14.2.2 Option byte programming

Explains how to program option bytes for STM32 devices.

9.14.2.3 Securing/unsecuring the device

Covers securing and unsecuring STM32F10x devices.

9.15 Texas Instruments

Lists specific devices from Texas Instruments tested with J-Link.

9.15.1 AM335x

Details specifics for AM335x devices, including IDE selection.

9.15.1.1 Selecting the device in the IDE

Guides on selecting the correct device in the IDE for AM335x.

10 Target interfaces and adapters

10.1 20-pin JTAG/SWD connector

Provides details and pinout for the 20-pin JTAG/SWD connector.

10.1.1 Pinout for JTAG

Details the JTAG pin configuration for the 20-pin connector.

10.1.1.3 Target power supply

Explains how to control target power supply via J-Link commands.

10.1.2 Pinout for SWD

Provides the pinout for the SWD interface on the J-Link connector.

10.2 38-pin Mictor JTAG and Trace connector

Details the 38-pin Mictor connector for JTAG and Trace.

10.2.1 Connecting the target board

Guides on connecting the target board using the 38-pin connector.

10.2.2 Pinout

Provides the detailed pinout for the 38-pin Mictor connector.

10.3 19-pin JTAG/SWD and Trace connector

Details the 19-pin connector for JTAG/SWD and Trace.

10.3.1 Target power supply

Explains target power supply for the 19-pin connector.

10.4 9-pin JTAG/SWD connector

Describes the 9-pin connector for Cortex-M devices.

10.5 Adapters

Lists available adapters for J-Link.

11 Background information

11.1 JTAG

Provides background information on the JTAG standard and its components.

11.1.1 Test access port (TAP)

Explains the JTAG Test Access Port (TAP) functionality.

11.1.4 The TAP controller

Describes the states and operation of the JTAG TAP controller.

11.2 Embedded Trace Macrocell (ETM)

Explains the Embedded Trace Macrocell (ETM) for debug and trace.

11.2.2 Code tracing and data tracing

Details code tracing and data tracing capabilities of ETM.

11.4 Flash programming

Explains how flash programming works with J-Link.

11.4.1 How does flash programming via J-Link / J-Trace work?

Describes the mechanism of flash programming using J-Link/J-Trace.

11.4.4 Available options for flash programming

Lists different solutions for flash programming.

11.4.4.1 J-Flash - Complete flash programming solution

Introduces J-Flash as a complete flash programming tool.

11.5 J-Link / J-Trace firmware

Covers information about the J-Link/J-Trace firmware.

11.5.1 Firmware update

Details the automatic firmware update process for J-Link/J-Trace.

12 Designing the target board for trace

12.1 Overview of high-speed board design

Provides an overview of essential high-speed board design rules.

12.1.2 Minimizing Signal Skew (Balancing PCB Track Lengths)

Explains the importance of balancing PCB track lengths for signal integrity.

12.2 Terminating the trace signal

Details methods for terminating trace signals.

12.2.1 Rules for series terminators

Outlines the rules for applying series termination.

12.3 Signal requirements

Lists the signal requirements for trace connections.

13 Support and FAQs

13.1 Measuring download speed

Discusses measuring and understanding download speed performance.

13.2 Troubleshooting

Offers solutions for common problems encountered with J-Link/J-Trace.

13.2.1 General procedure

Provides a general step-by-step troubleshooting procedure.

13.2.2 Typical problem scenarios

Describes common issues and their remedies.

J-Link / J-Trace LED is off

Troubleshooting steps when the J-Link LED is off.

J-Link / J-Trace LED is flashing at a high frequency

Troubleshooting steps for a flashing J-Link LED.

13.3 Contacting support

Provides information on how to contact SEGGER support.

13.4 Frequently Asked Questions

Lists common questions and answers related to J-Link usage.

Supported CPUs

FAQ about which CPUs are supported by J-Link/J-Trace.

Using J-Link in my application

FAQ regarding using J-Link within custom applications.

14 Glossary

Adaptive clocking

Defines adaptive clocking technique for JTAG/SWD.

Dynamic Linked Library (DLL)

Defines what a Dynamic Linked Library (DLL) is.

Embedded Trace Macrocell (ETM)

Defines Embedded Trace Macrocell (ETM) for ARM processors.

Joint Test Action Group (JTAG)

Defines the Joint Test Action Group (JTAG) standard.

Remote Debug Interface (RDI)

Defines the Remote Debug Interface (RDI) standard.

Scan Chain

Defines a scan chain in JTAG context.

Semihosting

Explains the semihosting mechanism for target-host communication.

TAP Controller

Defines the JTAG TAP Controller's function.

15 Literature and references

[ETM] Embedded Trace Macrocell Architecture Specification, ARM IHI 0014J

Document defining the ETM standard, signal protocol, and physical interface.

[RVI] RealView ICE and RealView Trace User Guide, ARM DUI 0155C

Document describing ARM's RealView ICE emulator and target requirements.

Related product manuals