tcl: don't use 'set' to retrieve the value of a variable
[fw/openocd] / tcl / target / klx.cfg
index 36b6ed5962cca1a5a441c6a4f3255e656db15d2f..84f6535e35ed7ae7484ddf03f31af245bb11aad7 100644 (file)
@@ -56,9 +56,9 @@ if {[using_hla]} {
    echo " it without mass erase. Don't set write protection on the first block."
    echo "!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!"
    echo ""
-} {
-   # Detect secured MCU or boot lock-up in RESET/WDOG loop
-   $_CHIPNAME.cpu configure -event examine-start {
+} else {
+   # Detect secured MCU
+   $_TARGETNAME configure -event examine-fail {
       kinetis mdm check_security
    }