From d90b86d8e35f4f681eb341ca534985eb1046cc59 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Wed, 25 Feb 2015 08:19:15 +1100 Subject: transport: make 'transport select' auto-select the first available transport if not set This should allow most of the existing configurations for older versions to remain compatible without forcing the user to change his or her config to explicitly select transport. Also in some circumstances can remove the need to chain a "-c transport select X" when building custom configs on the command line, which seems like a common new user pitfall. Change-Id: Ic87a38c0b9b88e88fb6d106385efce2f39381d3d Suggested-by: Petteri Aimonen Signed-off-by: Angus Gratton Reviewed-on: http://openocd.zylin.com/2551 Reviewed-by: Paul Fertser Tested-by: jenkins Reviewed-by: Spencer Oliver --- tcl/target/swj-dp.tcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tcl') diff --git a/tcl/target/swj-dp.tcl b/tcl/target/swj-dp.tcl index f759e7c8..1d274cb1 100644 --- a/tcl/target/swj-dp.tcl +++ b/tcl/target/swj-dp.tcl @@ -19,8 +19,8 @@ # them more uniformly irlen too...) if [catch {transport select}] { - echo "Info : session transport was not selected, defaulting to JTAG" - transport select jtag + echo "Error: unable to select a session transport. Can't continue." + shutdown } proc swj_newdap {chip tag args} { -- cgit v1.2.3-18-g5258