diff options
author | Paul Fertser <fercerpav@gmail.com> | 2014-08-14 20:12:01 +0400 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2014-08-19 20:19:40 +0000 |
commit | 8390f7142870f353a10138440adccf24bc7f1c96 (patch) | |
tree | 22ce3334ef677a88f7334adc6bccd9b5a4efc4d7 /tcl | |
parent | 877b8434cd1aee1b6440fb8f74bc325655e3514c (diff) | |
download | riscv-openocd-8390f7142870f353a10138440adccf24bc7f1c96.zip riscv-openocd-8390f7142870f353a10138440adccf24bc7f1c96.tar.gz riscv-openocd-8390f7142870f353a10138440adccf24bc7f1c96.tar.bz2 |
tcl/interface/ftdi: auto-select SWD from converters' configs
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>
Diffstat (limited to 'tcl')
-rw-r--r-- | tcl/interface/ftdi/olimex-arm-jtag-swd.cfg | 2 | ||||
-rw-r--r-- | tcl/interface/ftdi/rowley-cc-arm-swd.cfg | 2 | ||||
-rw-r--r-- | tcl/interface/ftdi/swd-resistor-hack.cfg | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/tcl/interface/ftdi/olimex-arm-jtag-swd.cfg b/tcl/interface/ftdi/olimex-arm-jtag-swd.cfg index ee7cdae..2153fd6 100644 --- a/tcl/interface/ftdi/olimex-arm-jtag-swd.cfg +++ b/tcl/interface/ftdi/olimex-arm-jtag-swd.cfg @@ -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 diff --git a/tcl/interface/ftdi/rowley-cc-arm-swd.cfg b/tcl/interface/ftdi/rowley-cc-arm-swd.cfg index 579561e..9a96dbd 100644 --- a/tcl/interface/ftdi/rowley-cc-arm-swd.cfg +++ b/tcl/interface/ftdi/rowley-cc-arm-swd.cfg @@ -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 diff --git a/tcl/interface/ftdi/swd-resistor-hack.cfg b/tcl/interface/ftdi/swd-resistor-hack.cfg index a6f3a26..7848875 100644 --- a/tcl/interface/ftdi/swd-resistor-hack.cfg +++ b/tcl/interface/ftdi/swd-resistor-hack.cfg @@ -4,4 +4,6 @@ # connect TDO directly to SWDIO. # +transport select swd + ftdi_layout_signal SWD_EN -data 0 |