summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-03-02 13:37:12 -0800
committerBdale Garbee <bdale@gag.com>2017-04-22 11:54:07 -0600
commit80e0466db0be2b892499bd2d9f136a3aa1ebb44f (patch)
treeb99358d581a03c7a6a7255b433eb593d63b56fb3
parentf036b35a6fe1e187b2faea5c4ddf72359b33a44f (diff)
ao-tools/ao-flash-lpc: Adapt to current openocd LPC support
Openocd 0.9.0 has generalized the lpc11xx support for all lpc11xx processors, not just the lpc11u14. This replaces the specific lpc11u14.cfg with the general lpc11xx.cfg file. Unlike the build we were using, this doesn't adjust the 'verify' command to adapt for the checksum which gets added during the flashing process. Hence, we disable verification and trust that if the flash loader works to load the OS, it's fine. Signed-off-by: Keith Packard <keithp@keithp.com>
-rwxr-xr-xao-tools/ao-flash/ao-flash-lpc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ao-tools/ao-flash/ao-flash-lpc b/ao-tools/ao-flash/ao-flash-lpc
index 7ac5b523..9e1d1cdb 100755
--- a/ao-tools/ao-flash/ao-flash-lpc
+++ b/ao-tools/ao-flash/ao-flash-lpc
@@ -8,9 +8,9 @@ esac
cmds=/tmp/flash$$
trap "rm $cmds" 0 1 15
file="$1"
-echo "program $file verify reset" > $cmds
+echo "program $file reset" > $cmds
openocd \
-f interface/stlink-v2.cfg \
- -f target/lpc11u14.cfg \
+ -f target/lpc11xx.cfg \
-f $cmds \
-c shutdown