X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=tcl%2Ftarget%2Fswj-dp.tcl;h=f2b233fb78133fd5e45395fd307674c16a65ed70;hb=0dd969d83badb6793519ee99dd8ab8579d5f59df;hp=f759e7c8df3c265f620cde7213e2bef9b88754ca;hpb=ef02b69b14d133b061217a91add5a028a77e86bc;p=fw%2Fopenocd diff --git a/tcl/target/swj-dp.tcl b/tcl/target/swj-dp.tcl index f759e7c8d..f2b233fb7 100644 --- a/tcl/target/swj-dp.tcl +++ b/tcl/target/swj-dp.tcl @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + # ARM Debug Interface V5 (ADI_V5) utility # ... Mostly for SWJ-DP (not SW-DP or JTAG-DP, since # SW-DP and JTAG-DP targets don't need to switch based @@ -19,16 +21,17 @@ # 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} { - if [using_hla] { - eval hla newtap $chip $tag $args - } elseif [using_jtag] { + if [using_jtag] { eval jtag newtap $chip $tag $args } elseif [using_swd] { eval swd newdap $chip $tag $args + } else { + echo "Error: transport '[ transport select ]' not supported by swj_newdap" + shutdown } }