ao-tools/ao-flash-lpc: Adapt to current openocd LPC support
authorKeith Packard <keithp@keithp.com>
Thu, 2 Mar 2017 21:37:12 +0000 (13:37 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 2 Mar 2017 21:37:12 +0000 (13:37 -0800)
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>
ao-tools/ao-flash/ao-flash-lpc

index 7ac5b523077ec1f8a0c4da7e3b5e5c88f4f98a1a..9e1d1cdb8ade7b320e15d08bd951fa2afeee77d8 100755 (executable)
@@ -8,9 +8,9 @@ esac
 cmds=/tmp/flash$$
 trap "rm $cmds" 0 1 15
 file="$1"
 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 \
 openocd \
        -f interface/stlink-v2.cfg \
-       -f target/lpc11u14.cfg \
+       -f target/lpc11xx.cfg \
        -f $cmds \
        -c shutdown
        -f $cmds \
        -c shutdown