From d6cad946db6ac4b8a29275c1c9864b3691551f74 Mon Sep 17 00:00:00 2001 From: cgsfv Date: Thu, 28 Mar 2024 09:42:17 -0700 Subject: [PATCH] OK if target is unavailble after waiting for halt --- src/target/startup.tcl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/target/startup.tcl b/src/target/startup.tcl index fbfcd19d7..7a1e245c6 100644 --- a/src/target/startup.tcl +++ b/src/target/startup.tcl @@ -145,6 +145,9 @@ proc ocd_process_reset_inner { MODE } { # Did we succeed? set s [$t curstate] + if { $s == "unavailable" } { + continue + } if { $s != "halted" } { return -code error [format "TARGET: %s - Not halted - Maybe unavailable %s" $t $s] }