Skip to content
Snippets Groups Projects
Commit e51d5916 authored by Paul Fertser's avatar Paul Fertser
Browse files

jtag/startup.tcl: fix regression with autoselecting JTAG


This regression was introduced with d90b86d8. "transport select" doesn't
throw an error anymore and autoselects the first available transport on
its own.

Reported by moyix on IRC.

Change-Id: I3f303c0372e915931cca4b28af450694abc1a63e
Signed-off-by: default avatarPaul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2693
Tested-by: jenkins
parent 7090edc8
Branches
Tags
No related merge requests found
...@@ -89,9 +89,8 @@ proc measure_clk {} { ...@@ -89,9 +89,8 @@ proc measure_clk {} {
add_help_text measure_clk "Runs a test to measure the JTAG clk. Useful with RCLK / RTCK." add_help_text measure_clk "Runs a test to measure the JTAG clk. Useful with RCLK / RTCK."
proc default_to_jtag { f args } { proc default_to_jtag { f args } {
if [catch {transport select} current_transport] { set current_transport [transport select]
echo "Info : session transport was not selected, defaulting to JTAG" if {[using_jtag]} {
transport select jtag
eval $f $args eval $f $args
} { } {
error "session transport is \"$current_transport\" but your config requires JTAG" error "session transport is \"$current_transport\" but your config requires JTAG"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment