projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ao-tools: Use 'program' command in ao-flash-lpc instead of 'flash'
[fw/altos]
/
ao-tools
/
ao-flash
/
ao-flash-lpc
diff --git
a/ao-tools/ao-flash/ao-flash-lpc
b/ao-tools/ao-flash/ao-flash-lpc
old mode 100644
(file)
new mode 100755
(executable)
index
57f632b
..
7ac5b52
--- a/
ao-tools/ao-flash/ao-flash-lpc
+++ b/
ao-tools/ao-flash/ao-flash-lpc
@@
-7,15
+7,10
@@
case "$#" in
esac
cmds=/tmp/flash$$
trap "rm $cmds" 0 1 15
esac
cmds=/tmp/flash$$
trap "rm $cmds" 0 1 15
-for file in "$@"; do
- echo "flash write_image $file"
-done > $cmds
+file="$1"
+echo "program $file verify reset" > $cmds
openocd \
-f interface/stlink-v2.cfg \
-f target/lpc11u14.cfg \
openocd \
-f interface/stlink-v2.cfg \
-f target/lpc11u14.cfg \
- -c init \
- -c 'reset halt' \
-f $cmds \
-f $cmds \
- -c 'reset init' \
- -c 'reset run' \
-c shutdown
-c shutdown