]> git.sur5r.net Git - openocd/commitdiff
tcl/interface/ftdi: auto-select SWD from converters' configs
authorPaul Fertser <fercerpav@gmail.com>
Thu, 14 Aug 2014 16:12:01 +0000 (20:12 +0400)
committerSpencer Oliver <spen@spen-soft.co.uk>
Tue, 19 Aug 2014 20:19:40 +0000 (20:19 +0000)
When you source a JTAG-SWD converter config, any other transport
doesn't make any sense, so just autoselect it right there.

Change-Id: I6c098740905a0d4007473fc19cc07e11cbcc9369
Suggested-by: Хайруллин Эльдар <eldar.khayrullin@mail.ru>
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2248
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-by: Eldar Khayrullin <eldar.khayrullin@mail.ru>
tcl/interface/ftdi/olimex-arm-jtag-swd.cfg
tcl/interface/ftdi/rowley-cc-arm-swd.cfg
tcl/interface/ftdi/swd-resistor-hack.cfg

index ee7cdaecd989ee582dbcb6c6ec35ad575f176434..2153fd65f59c83f84bdfc7d23191819f0e0f3864 100644 (file)
@@ -3,5 +3,7 @@
 # https://www.olimex.com/Products/ARM/JTAG/ARM-JTAG-SWD/
 #
 
+transport select swd
+
 ftdi_layout_signal SWD_EN -nalias nTRST
 ftdi_layout_signal SWDIO_OE -alias TMS
index 579561eb490e04395e1b867803aad114c4f3b2dc..9a96dbd9250e2b1551c1a1b8f0e15e32b042c33b 100644 (file)
@@ -4,5 +4,7 @@
 # https://drive.google.com/file/d/0Bzv7UpKpOQhnTUNNdzI5OUR4WGs/edit?usp=sharing
 #
 
+transport select swd
+
 ftdi_layout_signal SWD_EN -nalias nTRST
 ftdi_layout_signal SWDIO_OE -alias TMS
index a6f3a26c5aaffb0125c9b461e80001e2934b67df..7848875222beb8f7157ba76a903e8d7123c9b6e8 100644 (file)
@@ -4,4 +4,6 @@
 # connect TDO directly to SWDIO.
 #
 
+transport select swd
+
 ftdi_layout_signal SWD_EN -data 0