]> git.sur5r.net Git - openocd/blobdiff - tcl/target/swj-dp.tcl
Auto-select JTAG transport when appropriate
[openocd] / tcl / target / swj-dp.tcl
index bd348e6611a4b6e178e110b312079f1e29288ecc..2fa82ed376ced88c93e88d0ef40d4318342a0945 100644 (file)
 # 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 }