aboutsummaryrefslogtreecommitdiff
path: root/tcl/target/kx.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'tcl/target/kx.cfg')
-rw-r--r--tcl/target/kx.cfg8
1 files changed, 6 insertions, 2 deletions
diff --git a/tcl/target/kx.cfg b/tcl/target/kx.cfg
index 0ff5b0c5..1dd5d316 100644
--- a/tcl/target/kx.cfg
+++ b/tcl/target/kx.cfg
@@ -58,9 +58,13 @@ if {[using_hla]} {
echo " it without mass erase. Don't set write protection on the first block."
echo "!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!"
echo ""
-} {
+} else {
# Detect secured MCU or boot lock-up in RESET/WDOG loop
- $_CHIPNAME.cpu configure -event examine-start {
+ $_TARGETNAME configure -event examine-fail {
+ kinetis mdm check_security
+ }
+ # During RESET/WDOG loop the target is sometimes falsely examined
+ $_TARGETNAME configure -event examine-end {
kinetis mdm check_security
}