summaryrefslogtreecommitdiff
path: root/chip/lm4/openocd/lm4x_cmds.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'chip/lm4/openocd/lm4x_cmds.tcl')
-rw-r--r--chip/lm4/openocd/lm4x_cmds.tcl6
1 files changed, 6 insertions, 0 deletions
diff --git a/chip/lm4/openocd/lm4x_cmds.tcl b/chip/lm4/openocd/lm4x_cmds.tcl
index 056a143512..3261460de7 100644
--- a/chip/lm4/openocd/lm4x_cmds.tcl
+++ b/chip/lm4/openocd/lm4x_cmds.tcl
@@ -31,6 +31,12 @@ proc flash_bds { } {
flash_lm4 ../../../build/bds/ec.bin 0
}
+proc unprotect_link { } {
+ reset halt
+ flash erase_sector 0 254 255
+ reset
+}
+
# Boot a software using internal RAM only
proc ramboot_lm4 {path} {