aboutsummaryrefslogtreecommitdiff
path: root/tcl/target/swj-dp.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'tcl/target/swj-dp.tcl')
-rw-r--r--tcl/target/swj-dp.tcl5
1 files changed, 5 insertions, 0 deletions
diff --git a/tcl/target/swj-dp.tcl b/tcl/target/swj-dp.tcl
index bd348e66..2fa82ed3 100644
--- a/tcl/target/swj-dp.tcl
+++ b/tcl/target/swj-dp.tcl
@@ -18,6 +18,11 @@
# split out "chip" and "tag" so we can someday handle
# them more uniformly irlen too...)
+if [catch {transport select}] {
+ echo "Info : session transport was not selected, defaulting to JTAG"
+ transport select jtag
+}
+
proc swj_newdap {chip tag args} {
if {[using_jtag]} { eval jtag newtap $chip $tag $args }
if {[using_swd]} { eval swd newdap $chip $tag $args }