X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fhelper%2Fstartup.tcl;h=229aa066f23026a81414ff678b2edc6bca73e204;hp=7225929fb46922354cf407e0b524f51daf8130d5;hb=39b57471bfd92ef0d9a3aceb69f40c1335f5b62f;hpb=a2886fe3c66e7cdb05148234054e89730662103d diff --git a/src/helper/startup.tcl b/src/helper/startup.tcl index 7225929fb4..229aa066f2 100644 --- a/src/helper/startup.tcl +++ b/src/helper/startup.tcl @@ -359,3 +359,13 @@ proc capture_catch {a} { } result return $result } + + +# Executed during "init". Can be implemented by target script +# tar +proc jtag_init {} { + if {[catch {jtag arp_init} err]!=0} { + # try resetting additionally + jtag arp_init-reset + } +} \ No newline at end of file