Analyze the principles and differences between J-Link, J-Trace, and Open JTAG

Publisher:朱雀Latest update time:2020-09-10 Source: elecfansKeywords:J-Link  J-Trace  Open  JTAG Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

J-Link, J-Trace, and Open JTAG are all used to debug programs (of course, there are other tools for debugging, such as ICE). J-Link and J-Trace are open source projects of SEGGER, whose goal is to enable embedded developers to use open hardware and software systems to burn, verify, and debug through the JTAG interface. They are all based on the JTAG debug interface protocol.

1. Working Principle

To debug ARM, you must follow the ARM debug interface protocol, and JTAG is one of them. When emulating, IAR, Keil, ADS, etc. all have a common debug interface, and RDI (RDI interface is the debug interface standard proposed by ARM, mainly used for JTAG emulation of ARM chips) is one of them. So how do we complete the conversion from RDI to ARM debug protocol (JTAG)? There are two ways to do this:

(1) Write a service program on the computer to parse the RDI commands in keil, ads, and iar into the relevant JTAG protocol, and then send it to your target board through a physical conversion interface (note that this conversion is only a conversion on the electrical physical layer, just like the function of RS232). H-JTAG is like this. The hardware of H-JTAG is just a physical level conversion interface, so it is very simple. The H-JTAG software installed in the computer is the service program mentioned above, which is responsible for protocol conversion.

(2) Another way is to make a board, use this board to directly receive debugging commands from keil, ads, iar and other software, and use this board to convert rdi->jtag protocol. Then communicate with the target board, which is the working principle of jlink. (This also realizes the USB to JTAG protocol.)

One post said: "Boss, both are done with software, but the software is placed in different places (one is on the computer, the other is in the simulator). The real hardware, like JTRACE, is implemented with FPGA. In essence, it is still a process from software to hardware."


2. Differences between J-Link and J-Trace

I was recently reading Page 12 of "J-Link/J-Trace User Guide (UM08001)" and found that the article explained the difference between JLink and JTrace, which is easy to understand. The excerpt is as follows:

J-Link

JTAG emulator for ARM cores

USB driven JTAG interface for ARM cores.

J-Trace

JTAG emulator for ARM cores

USB driven JTAG interface for ARM cores with

Trace memory. supporting the ARM ETM (Embed-

ded Trace Macrocell).

The ARM Keil Tools official website (http://www.keil.com/pr/article/1141.htm) is more detailed, excerpted as follows:

The SEGGER J-Link is a USB to JTAG adapter supporting ARM7™, ARM9™ and Cortex™-M3 processor based devices with JTAG speeds of up to 12MHz. It interfaces to all evaluation boards and target hardware using a standard 20-pin or 14-pin (optional) JTAG connector.

The SEGGER J-Trace is a combined unit offering real-time trace and JTAG debugging for all ARM7 and ARM9 devices with an integrated ETM (Embedded Trace Macrocell). An integrated 2MB trace buffer enables high speed instruction and data trace at speeds of up to 200MHz, connecting to the target device via a 38-pin Mictor cable. J-Trace also includes a J-Link interface for standard JTAG target debugging via a 20-pin connector.

Trace information from J-Trace is displayed in dedicated windows, providing a seamless interface with other μVision debug and analysis tools.

J-Link is part of several starter kits from various vendors and is indentical with SAM-ICE (from Atmel) and mIDAS-Link (from Analog Devices). With direct J-Link support users can now easily begin taking advantage of the unique and advanced features of RealView MDK compared to other tool offerings and starter kits.

RealView MDK is available from Keil or your local Keil distributor. J-Link and J-Trace are available from SEGGER Microcontroller and its world wide sales channels.

I saw a post in the forum that gave a brilliant answer to the difference between J-Link and J-Trace, as follows:

J-Link is like a camera, you can only see the debugging information when the program stops (at a breakpoint), through the JTAG/SWD interface; J-Trace is like a video recorder, which can record and replay the entire debugging interface, through the ETM interface. Recently, some Cortex-M3 chips support the SWO interface, which is like a high-speed continuous shooting camera. If the sampling interval is small, it looks a bit like Trace. This debugging function has been supported in J-Link v7 and EWARM v5.30.


3. Differences between J-Link and Open JTAG

As mentioned above, both are used to debug programs, and both implement the USB to JTAG protocol function, that is, use USB to connect to the host, use JTAG cable to connect to the JTAG port of the board, and the conversion between them is done through J-Link or Open JTAG conversion. In addition, J-Link is generally an independent component, while Open JTAG is generally integrated into the board.


4. J-Link GDBServer and Open OCD

openOCD is a host computer program (a computer that people can directly issue control commands to, usually a PC. Corresponding to the lower computer). jlink gdbserver and openocd are the same thing, both play the role of a gdb server, used to interpret the debugging signals from arm-elf-gdb and control the hardware (Jlink or openjtag)

Keywords:J-Link  J-Trace  Open  JTAG Reference address:Analyze the principles and differences between J-Link, J-Trace, and Open JTAG

Previous article:Data bus width: the meaning of alignment, how to align, and the resulting efficiency differences
Next article:Detailed explanation of the design scheme of SWI soft interrupt function based on ARM7 core

Recommended ReadingLatest update time:2024-11-16 13:40

STVD reported the problem of can't open file crtsi0.sm8
The above problem can be solved by adding the compiler path in STVD- Tools- Options- Toolset- Root path.
[Microcontroller]
STVD reported the problem of can't open file crtsi0.sm8
How to disable JTAG function when downloading AVR ISP
Set the fuse bit to disable jtag; that is, OCDEN=1 2 methods: When programming, set the fuse bit and remove the check mark in front of JTAGEN. or MCUCSR |= 1 JTD; //Disable JTAG interface MCUCSR |= 1 JTD; //Two consecutive operations are required to be effectively executed MCUCSR &= ~(1 JTD); //Enable JTAG interf
[Microcontroller]
Two firmware download modes of stm32: JTAG and SWD
1. JTAG mode This model generally has 10-pin, 14-pin and 20-pin. Although the number of pins and the order of the pins are different, some of the pins are the same. It is worth noting that different IC companies will define their own Jtag headers for their own products to download or debug programs. Test Clock Inp
[Microcontroller]
Two firmware download modes of stm32: JTAG and SWD
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号