Installation and configuration of the Jlink emulator and the St-link emulator. pdf
工欲善其事, ... STM32 Development Environment Construction
View Address
When it comes to emulators, the first thing to know about JTAG.
JTAG protocol
JTAG(Joint Test Action Group, Joint Test Action Group) is an International Standard test Protocol (IEEE 1149.1 compliant) and is mainly used for in-chip internal testing. Most advanced devices now support JTAG protocols such as ARM, DSP, FPGA devices, and so on. The standard JTAG interface is 4 lines:TMS, TCK, TDI, TDO, mode selection, clock, data input, and data output lines, respectively. The relevant JTAG PIN is defined as:
-
- TMS: test mode selection, TMS is used to set the JTAG interface in a specific test mode;
- TCK: test clock input;
- TDI: test data input, data through the TDI pin input JTAG interface;
- tdo: test data output, data is output from the Jtag interface via the TDO pin;
When the JTAG protocol is defined, the computer (PC) at that time is generally connected to the port, so the connection computer is defined using the same port. And the computer to today, do not say notebook computers, now desktop computers have a few of the same port, and replaced by more and more USB interface. Then can you let JTAG support USB protocol, with USB interface to debug arm? This is going to be about Jlink and Ulink.
Note: For the JTAG principle, please refer to the article "Jtag Debugging Principle".
Jlink Emulator
J-link is a JTAG-based emulator launched by the German Segger company. Simply put, is to give a JTAG protocol conversion box. It is connected to the computer with a USB interface, and the JTAG protocol is used inside the target board. It accomplishes a job of converting from software to hardware.
Ulink Emulator
Ulink is an emulator launched by Arm/keil, which is now available on the web for its upgraded version, ULINK2 and Ulinkpro emulator. The ULINK/ULINK2 can be emulated with Keil software and can only be used on Keil software.
St-link
St-link is an emulator specifically for St STM8 and STM32 series chips.
1.1 JTAG
JTAG is also an international Standard test protocol (IEEE 1149.1
compatible), primarily for in-chip internal testing. Most advanced devices now support the JTAG protocol, such as DSP,
FPGA devices and so on.
The standard JTAG interface is 4 lines: TMS, TCK, TDI, TDO, respectively, mode selection, clock,
Data input and data output lines.
The relevant JTAG PIN is defined as: TCK for test clock input, TDI for test data input, number of
The JTAG interface is input via the TDI PIN, the TDO is the test data output, the data is passed through the TDO pin from the JTAG
TMS is a test mode choice, TMS is used to set the JTAG interface in a specific test mode
Trst for test reset, input pin, low level active.
The 1.2 Jlink J-link is a small USB-to-JTAG conversion box designed for arm. It is connected via USB
To the PC host running Windows. J-link seamless integration into IAR Embedded Workbench for ARM
, it is completely compatible with PNP (Plug and Play):
(1) Support all ARM7 and ARM9 systems;
(2) Download speed up to 50kb/s;
(3) No need for external power supply (USB to take power);
(4) Maximum jtag speed up to 8MHz;
(5) Automatic speed identification;
(6) firmware can be upgraded;
(7) 20 pin standard JTAG connector;
(8) A flat cable with USB connection and 20 feet;
(9) can be used for Keil, IAR, ADS and other platform speed, efficiency, functions are stronger than ulink
J-link emulator V8 version, its simulation speed and function is far from simple Wiggler debugging
Can be compared to the device. J-link supports ARM7, ARM9, ARM11, CORTEX-M3 Core, support ads, IAR,
Keil development environment. In addition to having the full functionality of the previous version of V7.0, the V8.0 version
There are improvements:
(1) V8.0 version of the SWD hardware interface to support the 1.2-5.0v target board, V7.0 can only support
3.3V Target board.
(2) V8.0 using two-color LED can indicate more working status, V7.0 only 1 LEDs
Light.
(3) The V8.0 enhances the JTAG drive capability and improves the compatibility of the target board.
(4) Optimize the firmware structure, so that the application area to expand a j-link arm main features.
1.3 Ulink
ULINK--ULINK2 is the latest emulator for ARM's newest companion RealView mdk, which is
Upgrade version of the Ulink emulator. The ULINK2 not only has all the functions of the Ulink emulator, but also adds a serial
(SWD) Support, return clock support and real-time proxy functions. The development engineer uses a combination of RealView MDK
Debugger and ULINK2, you can easily debug on-chip on the target hardware (using On-chip jtag,swd and
OCDS), flash programming.
1.4 St-link
ST-LINK/V2 Specifies the swim standard interface and JTAG/SWD standard interface, and its main functions are:
(1) Programming function: Can burn write Flash ROM, EEPROM, AFR and so on.
??? (2) Simulation function: Support full-speed operation, single-step debugging, breakpoint debugging and other debugging methods, can check
See IO status, variable data, and more.
??? (3) Simulation performance: Using USB2.0 interface for simulation debugging, single step debugging, breakpoint debugging, anti-
should be fast!
??? (4) Programming Performance: Adopt USB2.0 interface, Carry on swim/jtag/swd download, download speed
It's fast!
1.5 Brief description of the difference
Jlink is more powerful than JTAG because JTAG uses parallel ports, so when used
Inconvenient, and the function is inferior to jlink. The Ulink feature is more powerful.
Ulink is an emulator developed by Keil company, which is designed for use under Keil platform, Ads,iar
can use
Jlink is a common development tool that can be used in Keil, IAR, ADS and other platform speed, efficiency,
Features are stronger than Ulink
ULINK2 download speed and debugging speed is really not jlink fast.
Installation and configuration of the Jlink emulator and the St-link emulator. pdf