UM0244
User manual
FlashLINK JTAG programming cable for STR9
Features
■
■
■
■
■
■
Allows PC or Notebook parallel port to program STR91x devices using Configuration and
Programming Software (CAPS) development tool.
Supports IEEE 1149.1 JTAG signals (JTCK, JTMS, JTDI, JTDO, JTRST).
Supports additional signal (JRTCK) to pace the JTCK clock signal coming in from the
external JTAG test equipment for debugging.
Single FlashLINK Cable assembly supports both 3.3V and 5V target devices with no
manual configuration. Target device may operate from 2.7V to 5.5V.
“Flying Lead” cable included to adapt to any target connector using 0.025” square posts.
“LoopTest” cable included to validate PC parallel port operation.
January 2007
Rev 2
1/11
www.st.com
Contents
UM0244
Contents
1
2
3
4
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Pin definition on FlashLINK adaptor . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Connector definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
4.1
Diagnostic tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
4.1.1
4.1.2
Loop test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Connect test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
5
Circuit example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Appendix A FlashLINK schematic. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
6
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2/11
UM0244
Overview
1
Overview
The family of STR91x devices offer In-System Programming (ISP) allowing a completely
blank device to be programmed while soldered to a circuit board. This simplifies
manufacturing and provides an effective way to update products after they are in use.
STR91x devices comply to the core requirements of the IEEE 1149.1 JTAG specification.
The FlashLINK cable assembly shown in
Figure 1
will perform ISP only on STR91x devices,
not memory or logic devices from other vendors. The software development tool
Configuration and Programming Software (CAPS) is a Windows based program which
operates the FlashLINK cable assembly (CAPS may be downloaded at no charge from
www.st.com/mcu).
CAPS will generate JAM STAPL and SVF files for use with 3rd party JTAG programming
equipment.
The five basic JTAG pins (JTCK, JTMS, JTDI, JTDO, JRST) on STR91x devices are
dedicated to operate as JTAG pin at all times.
Figure 1.
FlashLINK cable assembly
Mates
with
PC
parallel
port
Flying lead
cable
DB-25
Cable
6 feet
FlashLINK
Adapter
6 inches
12 WIRES
Target
device
DB-25 Cable, M-F
straight-through wiring
AI08862
Note:
14-pin ribbon cable may also be used.
3/11
Pin definition on FlashLINK adaptor
UM0244
2
Pin definition on FlashLINK adaptor
Table 1.
Pin #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Pin Description for 14-pin FlashLINK Adaptor Connector
Description
Generic Control Signal
JTAG IEEE 1149.1 Reset on target, active-low -
JTRST
Signal Ground
Generic Control Signal
JTAG IEEE 1149.1 Serial Data Input - JTDI
OC
Source
Source
Destination
Type
(1)
OC
OC
FlashLINK is
Signal:
Source
Source
Signal Name
JEN
(2)
TRST
GND
(3)
CNTL
(2)
TDI
TSTAT/JRTCK JTAG-ISP to pace JTCK clock signal - JRTCK
V
CC(4)
RST
TMS
GND
TCK
GND
TDO
TERR
(2)
DC source from target, 2.7V to 5.5V
Target system reset, active-low
JTAG IEEE 1149.1 Mode Select - JTMS
Signal Ground
JTAG IEEE 1149.1 Clock - JTCK
Signal Ground
JTAG IEEE 1149.1 Serial Data Out - JTDO
Generic Data Out Signal
OC
Source
Source
Source
Destination
Destination
Note:
1
2
3
4
OC = Open Collector, pulled-up to V
CC
inside FlashLINK Adaptor.
Not supported by CAPS, signals remain inactive.
All signal grounds are tied together inside FlashLINK Adaptor.
The target must supply V
CC
to the FlashLINK Adaptor (2.7V to 5.5VDC, 15mA max at 5.5V).
Not all 14 signals are required for all applications. Here is how they are used:
●
●
●
●
●
(8) Core signals that must be connected: TDI, TDO, TMS, TCK, TRST, RST, V
CC
, GND
(1) Optional signal to pace TCK: TSTAT/JRTCK
(2) Optional generic control signals to target system from FlashLINK: JEN, CNTL
(1) Optional generic data out signal from target system to FlashLINK: TERR
(2) Two additional ground lines to help reduce EMI if a ribbon cable is used. These
ground lines “sandwich” the TCK signal in the ribbon cable. These two ground signals
are not present on the flying lead cable.
4/11
UM0244
Connector definition
3
Connector definition
There is no industry standard JTAG connector. Each device manufacturer differs. ST has a
specific connector and pinout for the FlashLINK Adaptor. The connector scheme on the
FlashLINK connector can accept a standard 14-pin ribbon cable connector (2 rows of 7 pins
on 0.1” centers, standard keying) or any other user specific connector that can slide onto
0.025” square posts. The pinout for the FlashLINK Adaptor connector is shown in
Figure 2.
A standard ribbon cable is a good way to quickly connect to the target circuit board. If a
ribbon cable is used, then the receiving connector on the target system should be the same
connector type with the same pinout as the FlashLINK Adaptor shown in
Figure 2.
Note:
The JTAG signal JTDI is sourced from the FlashLINK Adaptor and should be routed on the
target circuit board so that it connects to the JTDI input pin of the STR91x device.
The JTAG signal JTDO is an input received by the FlashLINK Adaptor and is sourced by the
STR91x device on its JTDO output pin. See
Figure 3 on page 8,
and
Figure 4 on page 9
for
more information.
Figure 2.
Pinout for FlashLINK Adaptor and Target System JTAG connector
14
TERR
12
GND
10
GND
8
RST
6
TSTAT/JRTCK
4
CNTL
2
TRST
13
TDO
(1)
11
TCK
9
TMS
7
Vcc
5
TDI
(2)
3
GND
1
JEN
KEY
WAY
AI08867
Note:
This diagram perspective is looking into the face of the shrouded male connector on the
FlashLINK Adaptor, 0.025-inch (0.635mm) posts on 0.100-inch (2.54mm) centers.
Connector reference: Molex 70247-1401.
Recommended ribbon cables for quick connection of the FlashLINK Adaptor to the end-
product: Samtec HCSD-07-D-06.00-01-S-N; Digikey M3CCD-14065-ND.
Note:
1
2
TDO is a signal destination on the FlashLINK and a signal source on the target board.
TDI is a signal source on the FlashLINK and a signal destination on the target board.
5/11