Keil™, An ARM® Company

ULINK®2 User's Guide

Target Connectors

There are five JTAG connectors inside ULINK2. These connectors support various cables required for debugging different targets with ULINK2. The connectors provided are:

  • A narrow (2.00mm/0.079") pin spacing) 20-pin connector for ARM targets,
  • A standard (2.54mm/0.1") 20-pin connector for ARM targets,
  • A 16-pin connector for Infineon OCDS (JTAG) targets,
  • A 14-pin connector for STMicroelectronics µPSD targets,
  • and a 10-pin connector for ARM targets (Mfgr: Don Connex P/N: C42 or Samtec P/N: EHF-105-01-L-D).

Cables for each connector ship with the ULINK2 Standard Product. If you must change cables, make certain you line up the marker stripe on the cable with pin 1 on the connector. Pin 1 is labeled on the board.

ULINK2 Adapter Target Cables

ULINK2 Adapter Connectors (cover off)

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

ULINK2 JTAG Pinout Diagrams

SignalConnects to...
TMSTMS pin — Use 100K Ohm pull-up resistor to VCC.
TDOTDO pin.
RTCKJTAG return clock.
TDITDI pin — Use 100KOhm pull-up resistor to VCC.
TRSTTRST/ pin — Use 100K Ohm pull-up resistor to VCC. TRST is optional and not available on some devices. You may leave it unconnected.
TCLKTCLK pin — Use 100K Ohm pull-up resistor to VCC.
VCCPositive Supply Voltage — Power supply for JTAG interface drivers.
GNDDigital ground.
RESETRSTIN/ pin — Connect this pin to the (active low) reset input of the target CPU.
CPUCLKCPU clock (according IEEE Standard 1149.1).
OCDSEEnable/Disable OCDS interface (Infineon-specific).
TRAPTrap condition (Infineon-specific).
BRKINHardware break in (Infineon-specific).
BRKOUTHardware break out (Infineon-specific).
/JENJTAG Enable (STMicroelectronics specific).
TSTATJTAG ISP Status (STMicroelectronics specific) (optional).
/RSTChip reset (STMicroelectronics specific).
/TERRJTAG ISP Error (STMicroelectronics specific) (optional).

Note

  • Some Philips LPC2000 Devices have special pins (RTCK / DBGSEL) that enable the JTAG interface. For example, on the Philips 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.

Serial Wire Mode Interface

The Serial Wire (SW) mode is a different operating mode for the JTAG port where only the pins TCLK and TDI are used for communication. The TDO pin becomes an optional trace data output. The JTAG pins become SW pins; therefore the debug interface of a typical Cortex-M device can be used either in JTAG or SW mode.

  • TCLK is SWCLK (Serial Wire Clock)
  • TDI is SWDIO (Serial Wire debug Data Input/Output)
  • TDO is SWO (Serial Wire trace Output)

ULINK2 Serial Wire Mode Pinouts

SignalConnects to...
SWDIOData I/O pin. Use 100K Ohm pull-up resistor. to VCC.
SWOOptional trace output pin.
SWCLKClock pin. Use 100K Ohm pull-up resistor to VCC.
VCCPositive Supply Voltage — Power supply for JTAG interface drivers.
GNDDigital ground.
RESETRSTIN/ pin — Connect this pin to the (active low) reset input of the target CPU.

Note

  • ULINK2 gets its power from the USB connection.
  • ULINK2 operates at 3.3V. All JTAG pins are 5V tolerant.

Related Knowledgebase Articles