ARM-JTAG-EW
User Manual
All boards produced by Olimex are ROHS compliant
Rev.B, March 2009
Copyright(c) 2009, OLIMEX Ltd, All rights reserved
1.
Introduction
ARM-JTAG-EW
is a JTAG probe for debugging ARM microcontrollers. It's a
product by joined efforts of Olimex and IAR Systems, aiming not just to
release yet another fast USB JTAG compatible with Embedded Workbench,
but to make low cost JTAG with features available only in the expensive
logic analyzers. For this purpose ARM-JTAG-EW offers external
breakpoints in addition to ordinary software and hardware ones. User can
configure ARM-JTAG-EW to stop the target program on an external trigger,
defined by target power consumption, rising/falling edge of external
signals, analogue signal window value.
ARM-JTAG-EW emulates the IAR Systems' J-LINK API so it works like
normal J-LINK debugger, yet it adds some unique features which are
available only in the very high end and expensive debugger tools on the
market.
1.1.
Hardware Features
-
-
-
-
-
-
-
-
-
-
JTAG connector with ARM 2x10 pin layout for target programming and
debugging
supports ARM targets working in voltage range 2.0–5.0V DC
1
USB full-speed connection to the PC
bi-color status LED
can provide 5.0V DC power to target via pin 19 of the JTAG connector
measurement of target current consumption
measurement of target MCU voltage and output voltage (pins 1 and 19
of the JTAG connector)
JTAG and SWD TCK frequency range 6kHz – 12MHz
SWO frequency range 1kHz – 3MHz
dimensions 50x40 mm (2x1.6") + 20 cm (8") JTAG cable
1.2.
Software Features
-
-
-
-
-
-
DLL mostly compatible with original
jlinkarm.dll
from IAR-EW
2
works with IAR Embedded Workbench 5.30 from IAR Systems
supports ARM7TDMI targets (e.g. SAM7, LPC2000, STR7)
supports Cortex M3 targets (e.g. STM32, LPC1000)
ability to put “external” breakpoints that trigger on a user-defined event
external event sources are the target MCU voltage, target supply voltage
and target consumption current
1 ARM-JTAG-EW outputs have 3.3V levels and will work with 5V targets that have TTL-level inputs.
2 DLL compatible means that we supply our own jlinkarm.dll. The original IAR-EW DLL will not work
with the ARM-JTAG-EW device because ARM-JTAG-EW and IAR J-Link use different USB
protocols.
1.3.
Electrostatic Warning
The ARM-JTAG-EW device is shipped in protective anti-static packaging.
The device must not be subject to high electrostatic potentials. General
practice for working with static sensitive devices should be applied when
working with this device.
1.4.
ARM-JTAG-EW Usage Requirements
Cables:
1.8 meter USB A-B cable.
Software:
EW-ARM 5.30 from IAR Systems AB
2.
2.1.
Hardware
USB Connector
ARM-JTAG-EW has a standard USB device connector that requires a
standard USB A-B cable for connecting to a PC.
2.2.
JTAG Connector
The JTAG connector pin description is given below.
Pin Signal
№
1
U
TG
Direc
tion
3
I
Description
Target reference voltage. Target board must connect
3 Pin direction is from the side of ARM-JTAG-EW. I stands for Input (Target to ARM-JTAG-EW), and
O for output (ARM-JTAG-EW to Target).
Pin Signal
№
Direc
tion
Description
it to the MCU supply line that drives the JTAG pins.
Input has resistance 4 kΩ.
2
3
U
TG,2
nTRST
I
Target board should connect it to the MCU supply
line that drives the JTAG pins.
O
Target JTAG TAP reset. ARM-JTAG-EW has 100 Ω
(open resistor in series with this output. Driven as open
drain) drain output.
-
O
-
Ground.
Target JTAG Data IN. ARM-JTAG-EW has 100 Ω
resistor in series with this output.
Ground.
Target JTAG Mode Select and Serial Wire Data
Input/Output. ARM-JTAG-EW has 100 Ω resistor in
series with this output.
Ground.
Target JTAG clock and Serial Wire Clock. ARM-
JTAG-EW has 100 Ω resistor in series with this
output.
Ground.
Target JTAG return clock. ARM-JTAG-EW has 100
Ω resistor in series with this input.
Ground.
Target JTAG data output and Serial Wire Output.
ARM-JTAG-EW has 100 Ω resistor in series with
this input.
Ground.
4
5
6
7
GND
TDI
GND
TMS/
O
SWDIO
GND
-
8
9
TCK/
O
SWCLK
GND
RTCK
GND
TDO/
SWO
GND
nSRST
-
I
-
I
10
11
12
13
14
15
-
O
Target system reset. ARM-JTAG-EW has 100 Ω
(open resistor in series with this output. Driven as open
drain) drain output.
-
-
-
O
Ground.
Not connected in ARM-JTAG-EW.
Ground.
Target power supply voltage provided by ARM-JTAG-
EW. Supply is taken from USB and is switched by a
MOSFET transistor. There is 4 kΩ resistor
connected between this pin and ground.
Ground.
16
17
18
19
GND
NC
GND
U
TGPWR
20
GND
-
2.3.
Providing Target Power Via JTAG Connector
By default ARM-JTAG-EW connects the USB supply voltage to pin 19 of
the JTAG connector via MOSFET switch. Depending on the current
consumption and the used USB host and hubs the supplied voltage can
vary between 4.0V and 5.25V.
WARNING:
In case of a target current consumption exceeding 400 mA,
including a short circuit on the target board, ARM-JTAG-EW will
shutdown its power output U
TGPWR
. Some USB hosts and hubs, however,
have faster short-circuit-detectors and will shutdown the power to ARM-
JTAG-EW before it has a chance to react.
Target power can be turned ON and OFF using the C-SPY macro
__jlinkExecCommand() like this:
//Turn power ON
execUserPreload() {
__jlinkExecCommand("SupplyPower = 1");
}
//Turn power OFF
execUserPreload() {
__jlinkExecCommand("SupplyPower = 0");
}
2.4.
LED Indication
ARM-JTAG-EW has a single dual color LED. Its states are shown below.
Slow blinking is with a period of 1s, and fast blinking is with a period of
128ms.
LED State
OFF
Slow RED blinking
GREEN constantly on
Fast RED blinking
Description
ARM-JTAG-EW is not connected to USB, or it is
in USB suspended state.
No target connected.
Target connected.
Target error caused by
overconsumption or MCU
bounds.
target
voltage
current
out of
GREEN blinking
USB communication is taking place.
Slow blinking sequence ARM-JTAG-EW is in boot loader mode.
GREEN→RED→OFF
3.
Software Installation
Please follow the following procedure exactly in the order it is written:
1. Install the Visual Studio 2008 SP1 Redistributable Package
vcredist_x86.exe
freely
available
from
Microsoft:
http://www.microsoft.com/downloads/details.aspx?
familyid=A5C84275-3B97-4AB7-
A40D-3802B2AF5FC2&displaylang=en
2. Install the .NET framework available freely from Microsoft:
http://
msdn2.microsoft.com/en-us/netframework/default.aspx.