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.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/lm4/openocd/lm4x_cmds.tcl b/chip/lm4/openocd/lm4x_cmds.tcl
index ea81c4c81c..59b6cb765d 100644
--- a/chip/lm4/openocd/lm4x_cmds.tcl
+++ b/chip/lm4/openocd/lm4x_cmds.tcl
@@ -9,8 +9,8 @@
proc flash_lm4 {path offset size} {
set firstsect [expr {$offset / 1024}];
set lastsect [expr {($offset + $size) / 1024 - 1}];
- reset halt;
- flash erase_sector 0 $firstsect $lastsect;
+ reset init;
+ flash erase_sector internal $firstsect $lastsect;
# Note erase_sector silently fails sometimes; see crosbug.com/p/8632
# Dump a few words as a diagnostic for whether erase succeeded
mdw 0 16