ULINK2
ULINK2
ULINK2 Adapter
Home Products Download Events Support Search Keil.com for: Go
ULINK
™
Debug Adapters ULINK2 Debug Adapter
Overview
ULINK Product Comparison
™
ULINKpro
Overview
Specifications
Supported Devices
Knowledgebase Articles
User's Guide
™
ULINK2
Overview
Specifications
Supported Devices
Knowledgebase Articles
User's Guide
™
ULINK-ME
Overview
The Keil ULINK2 Debug Adapter connects your PC's USB port to your target system (via JTAG, SWD, or
Specifications
OCDS) and allows you to program and debug embedded programs on target hardware.
Supported Devices
Knowledgebase Articles
User's Guide Features
ULINK Accessories Supports various ARM7, ARM9, Cortex-M, 8051, and C166 devices
Isolation Adapter JTAG speed up to 10MHz
5Volt Adapter
Serial Wire Debug (SWD) support for ARM Cortex-M based devices
Serial Wire Viewer (SWV) Data Trace for Cortex-M up to 1Mbit/s (UART mode)
Real-Time Agent with memory R/W during execution, terminal emulation, and serial debug output
Seamless integration with the Keil µVision IDE & Debugger
Wide target voltage range: 2.7V - 5.5V
USB powered (no power supply required)
Plug-and-Play installation using standard Windows USB drivers
Target Connectors
10-pin (0.05") - Cortex Debug Connector
20-pin (0.10") - ARM Standard JTAG Connector
Using the ULINK2 adapter together with the Keil µVision IDE/Debugger, you can easily create, download,
and test embedded applications on target hardware.
Note
ULINK2 support is available in:
Revision History
On-Line Manuals Download programs and test them on your target hardware.
Product Manuals Program the on-chip FLASH memory of many devices.
Document Conventions Program external FLASH memory of many target systems.
ULINK2 User's Guide
Introduction
Kit Contents
Features
Supported Devices
Supported Protocols
Software Requirements
Limitations
Technical Data
CoreSight Technology
Hardware Description
Setup ULINK2
Setup Flash Programming
Using ULINK2
Configure Cortex-M Devices for Tracing
µVision Windows
Real-Time Agent
Appendix
ULINK2 Adapter
®
The Keil µVision IDE/Debugger is the front-end you use with ULINK2 to create, download, and test
embedded applications on target hardware.
Contact Site Map Press Privacy Copyright © 2013 ARM Ltd and ARM Germany GmbH. All rights reserved.
ULINK2 User's Guide
Home Products Download Events Support Search Keil.com for: Go
Contact Site Map Press Privacy Copyright © 2013 ARM Ltd and ARM Germany GmbH. All rights reserved.
ULINK2 User's Guide
Home Products Download Events Support Search Keil.com for: Go
On-Line Manuals
Product Manuals
Document Conventions
(Though the red-dotted elements can be part of CoreSight, they are not supported by ULINK2.)
CoreSight features can be accessed through a JTAG or Serial Wire interface. Debugging in JTAG and
Serial Wire mode at the same time is not possible. Cortex-M processor-based devices can include a:
Debug Interface
The debug interface offers two modes:
Run Control: allows the user to start, stop, and single-step through the source code.
Breakpoint Unit: allows the user to set breakpoints even while the processor is running.
Memory Access Unit: allows the user to read or write to memory and peripheral registers even while
the program is running.
The Serial Wire Trace Output pin (SWO) can be used in Serial Wire Debug mode only.
The 4-Pin Trace Output has a greater bandwidth than Serial Wire Trace Output and uses 5
functional pins. It is the only way to output ETM trace data. However, the ULINKpro USB-JTAG/SW
debugger adapter is required to use this feature.
Embedded Trace Macrocell (ETM): can be used for instruction tracing to debug historical
sequences, for software profiling, and code coverage analysis. ETM data are output through an extra
4-bit interface (ULINKpro required).
Instrumentation Trace Macrocell (ITM): provides application information like debug printf(),
RTOS information, unit test, or UML annotation.
Data Watchpoint & Trace Unit (DWT): provides PC sampling, event counters, timing, and interrupt
execution information. In addition, it allows Access Breakpoints for up to four memory addresses.
Note
Check the manufacturer's device data sheet to read which CoreSight features have been
implemented.
Contact Site Map Press Privacy Copyright © 2013 ARM Ltd and ARM Germany GmbH. All rights reserved.
ULINK2 User's Guide
Home Products Download Events Support Search Keil.com for: Go
On-Line Manuals
Product Manuals
Document Conventions
In general, there is very little you must do to configure ULINK for your target system. However, you may
be required to:
On-Line Manuals
Product Manuals
Document Conventions
On-Line Manuals
Product Manuals
Document Conventions
On-Line Manuals A narrow (2.00mm/0.079") pin spacing) 20-pin connector for ARM targets,
Product Manuals A standard (2.54mm/0.1") 20-pin connector for ARM targets,
Document Conventions A 16-pin connector for Infineon OCDS (JTAG) targets,
ULINK2 User's Guide A 14-pin connector for STMicroelectronics µPSD targets,
Introduction and a 10-pin connector for ARM targets (Mfgr: Don Connex P/N: C42 or Samtec P/N: SHF-105-01-
Hardware Description L-D-TH). The Samtec part is available with different options for plating, tail, shroud, and lead style.
USB Interface
LED Indicators
A cable for each connector is shipped with the ULINK2 Standard Product. If you must change cables,
then make sure to line up the marker stripe on the cable with pin 1 of the connector. Pin 1 is labeled on
Jumpers
the board.
Target Connectors
JTAG Interface Schematics
Start Sequence
Reset Sequence
Setup ULINK2
Setup Flash Programming
Using ULINK2
Configure Cortex-M Devices for Tracing
µVision Windows
Real-Time Agent
Appendix
ULINK2 supports both JTAG and Serial Wire Mode interfaces. Refer to the appropriate pinout diagram for
the ULINK2 adapter connectors to make sure they match your target hardware.
JTAG Interface
The Serial Wire (SW) mode is a different operating mode for the JTAG port where only two pins, TCLK
and TMS, are used for the communication. A third pin can be use optionally to trace data. JTAG pins and
SW pins are shared.
Additional ARM 10-pin cables with connectors are available directly from Samtec:
Note
ULINK2 is powered through the USB connection.
ULINK2 operates at 3.3V. All JTAG pins are 5V tolerant.
Usually, devices do not include pull-up or pull-down resistors on JTAG nor SW pins. Resistors should
be added externally onto the board. However, do not add resistors when the device includes them
already.
Some NXP LPC2000 Devices have special pins (RTCK, DBGSEL) that enable the JTAG interface. For
example, on the NXP LPC2129 the signal RTCK must be driven low during RESET to enable the JTAG
interface. You may want to add jumpers to your hardware to accomplish this.
Contact Site Map Press Privacy Copyright © 2013 ARM Ltd and ARM Germany GmbH. All rights reserved.
ULINK2 User's Guide
Home Products Download Events Support Search Keil.com for: Go
On-Line Manuals
Product Manuals Signal Interface Schematics — IC2
Document Conventions
On-Line Manuals
Product Manuals For OCDS and 8051 Devices:
Document Conventions
ULINK2 User's Guide 1. ULINK2 initializes the JTAG interface and detects the Chip ID.
Introduction 2. Some JTAG registers are programmed to Halt after Reset. In this case, ULINK2 drives the JTAG
Hardware Description RESET output (pin 8 on the OCDS and ST connectors) low for 2 mSec.
USB Interface 3. ULINK2 stops the device.
LED Indicators
4. If Project — Options — Debug — Load Application at Startup is enabled, ULINK2 downloads
Jumpers
the code to the target and performs a Reset Sequence.
Target Connectors
5. If the Project — Options — Debug — Initialization File text box contains the name of an
JTAG Interface Schematics
initialization script, the debug commands in this script file are processed.
Start Sequence
Reset Sequence
Setup ULINK2
For ARM Devices:
Setup Flash Programming
Using ULINK2
1. If Use Reset at Startup is enabled, ULINK2 drives the JTAG RESET output (pin 15 on the ARM
Configure Cortex-M Devices for Tracing
JTAG connector, pin 8 on the OCDS and ST connectors) low for 50mSec.
µVision Windows
2. ULINK2 initializes the JTAG interface and detects the Chip ID.
Real-Time Agent
Appendix 3. If Use Reset at Startup is enabled, ULINK2 performs a Reset Sequence.
4. ULINK2 stops the device.
5. If Project — Options — Debug — Load Application at Startup is enabled, ULINK2 downloads
the code to the target and performs a Reset Sequence.
6. If the Project — Options — Debug — Initialization File text box contains the name of an
initialization script, the debug commands in this script file are processed.
1. ULINK2 initializes the JTAG/SW interface and detects the Chip ID. The HW RESET signal may be
activated depending on the Connect option selected in Options — Debug — Settings.
2. If Reset after Connect is enabled, ULINK2 performs a reset as defined by the Reset option
selected in Options — Debug — Settings.
3. ULINK2 stops the device.
4. If Project — Options — Debug — Load Application at Startup is enabled, ULINK2 downloads
the code to the target and performs a reset as defined by the Reset option selected in Options —
Debug — Settings.
5. If the Project — Options — Debug — Initialization File text box contains the name of an
initialization script, the debug commands in this script file are processed.