]> git.sur5r.net Git - openocd/commitdiff
tcl/interface/ftdi/swd-resistor-hack: clarify and add schematic diagram
authorPaul Fertser <fercerpav@gmail.com>
Sun, 26 Oct 2014 10:49:51 +0000 (13:49 +0300)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sun, 2 Nov 2014 18:04:14 +0000 (18:04 +0000)
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>
tcl/interface/ftdi/swd-resistor-hack.cfg

index 7848875222beb8f7157ba76a903e8d7123c9b6e8..04f3a73975782174f0e218c3ab528809348b0885 100644 (file)
@@ -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