aboutsummaryrefslogtreecommitdiff
path: root/tcl
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2014-10-26 13:49:51 +0300
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>2014-11-02 18:04:14 +0000
commitcbb797bdccbce7cff7f0121955950bf318da0f02 (patch)
tree9f301a31376cc0199015771e061469265c88572a /tcl
parent885f4388144840e411512543cd92fb9335ce806a (diff)
downloadriscv-openocd-cbb797bdccbce7cff7f0121955950bf318da0f02.zip
riscv-openocd-cbb797bdccbce7cff7f0121955950bf318da0f02.tar.gz
riscv-openocd-cbb797bdccbce7cff7f0121955950bf318da0f02.tar.bz2
tcl/interface/ftdi/swd-resistor-hack: clarify and add schematic diagram
Change-Id: I8600ee983de85e4225430ae508a50cd938122d89 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2357 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Diffstat (limited to 'tcl')
-rw-r--r--tcl/interface/ftdi/swd-resistor-hack.cfg17
1 files changed, 17 insertions, 0 deletions
diff --git a/tcl/interface/ftdi/swd-resistor-hack.cfg b/tcl/interface/ftdi/swd-resistor-hack.cfg
index 7848875..04f3a73 100644
--- a/tcl/interface/ftdi/swd-resistor-hack.cfg
+++ b/tcl/interface/ftdi/swd-resistor-hack.cfg
@@ -3,6 +3,23 @@
# so depending on the drive capability of the target and adapter);
# connect TDO directly to SWDIO.
#
+# You also need to have reliable GND connection between the target and
+# adapter. Vref of the adapter should be supplied with a voltage equal
+# to the target's (preferrably connect it to Vcc). You can also
+# optionally connect nSRST. Leave everything else unconnected.
+#
+# FTDI Target
+# ---- ------
+# 1 - Vref ----------------- Vcc
+# 3 - nTRST -
+# 4 - GND ----------------- GND
+# 5 - TDI ---/\470 Ohm/\--- SWDIO
+# 7 - TMS -
+# 9 - TCK ----------------- SWCLK
+# 11 - RTCK -
+# 13 - TDO ----------------- SWDIO
+# 15 - nSRST - - - - - - - - - nRESET
+#
transport select swd