aboutsummaryrefslogtreecommitdiff
path: root/tcl
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2014-08-24 09:50:17 +0400
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>2014-09-08 20:27:16 +0000
commit804aee77022f4ecf02321a06e7c4727d1b9cfd79 (patch)
tree3bafdc407976ec3d6a6503b6b4a1bbe1fd1e2837 /tcl
parent96549bf0121a7cff08885ddca22ab7a1c362ea24 (diff)
downloadriscv-openocd-804aee77022f4ecf02321a06e7c4727d1b9cfd79.zip
riscv-openocd-804aee77022f4ecf02321a06e7c4727d1b9cfd79.tar.gz
riscv-openocd-804aee77022f4ecf02321a06e7c4727d1b9cfd79.tar.bz2
tcl/interface/ftdi: add kt-link config (with SWD) for DP BusBlaster
Change-Id: Icbeca8c0c3845c0b777fb2e4c81b17e7b7cc5ff8 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2269 Tested-by: jenkins Reviewed-by: Ben Gamari <bgamari@gmail.com> Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Diffstat (limited to 'tcl')
-rw-r--r--tcl/interface/ftdi/dp_busblaster.cfg3
-rw-r--r--tcl/interface/ftdi/dp_busblaster_kt-link.cfg21
2 files changed, 24 insertions, 0 deletions
diff --git a/tcl/interface/ftdi/dp_busblaster.cfg b/tcl/interface/ftdi/dp_busblaster.cfg
index 4ff9dc8..73827cf 100644
--- a/tcl/interface/ftdi/dp_busblaster.cfg
+++ b/tcl/interface/ftdi/dp_busblaster.cfg
@@ -8,6 +8,9 @@
# http://dangerousprototypes.com/docs/Bus_Blaster
#
+echo "Info : If you need SWD support, flash KT-Link buffer from https://github.com/bharrisau/busblaster
+and use dp_busblaster_kt-link.cfg instead"
+
interface ftdi
ftdi_device_desc "Dual RS232-HS"
ftdi_vid_pid 0x0403 0x6010
diff --git a/tcl/interface/ftdi/dp_busblaster_kt-link.cfg b/tcl/interface/ftdi/dp_busblaster_kt-link.cfg
new file mode 100644
index 0000000..afa4de4
--- /dev/null
+++ b/tcl/interface/ftdi/dp_busblaster_kt-link.cfg
@@ -0,0 +1,21 @@
+#
+# Dangerous Prototypes - Bus Blaster (with KT-Link buffer)
+#
+# The Bus Blaster has a configurable buffer between the FTDI FT2232H
+# and the JTAG header which allows it to emulate various debugger
+# types. This config works with KT-Link compatible implementation from
+# https://github.com/bharrisau/busblaster and is SWD-enabled.
+#
+# http://dangerousprototypes.com/docs/Bus_Blaster
+#
+
+interface ftdi
+ftdi_device_desc "Dual RS232-HS"
+ftdi_vid_pid 0x0403 0x6010
+
+ftdi_layout_init 0x8c28 0xff3b
+ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400
+ftdi_layout_signal nSRST -data 0x0200 -noe 0x0800
+ftdi_layout_signal LED -data 0x8000
+ftdi_layout_signal SWD_EN -ndata 0x0020 -oe 0x2000
+ftdi_layout_signal SWDIO_OE -ndata 0x1000