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)
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
- Popular Resources
- Popular amplifiers
- A review of deep learning applications in traffic safety analysis
- Raspberry Pi Development in Action (2nd Edition) ([UK] Simon Monk)
- ESP32 steuert Roboterauto Open-Source-Code mit Arduino IDE and PlatformIO Autonomes Fahren GPS, Acce
- EDA Technology Practical Tutorial--Verilog HDL Edition (Sixth Edition) (Pan Song, Huang Jiye)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- MBUS front-end protection
- KiCad Simplified Chinese Manual
- What is the function of the cross connection of the five tubes in the middle of this comparator?
- Battery Management Chip BQ28Z610 Problem Collection
- From simulation to realization
- 【DFRobot motor driver】+ unboxing and testing
- EEWORLD University ---- Analog Electronic Circuits
- 【GD32450I-EVAL】+ 07 Camera full screen display test
- Recycling Huawei switches and Huawei routers at reasonable prices, safe and reliable, privacy and confidentiality
- Implementation of MSP430F5438A interrupt system