Merge branch 'master' into branch-1.8
[fw/altos] / ao-tools / ao-flash / ao-reset-lpc
diff --git a/ao-tools/ao-flash/ao-reset-lpc b/ao-tools/ao-flash/ao-reset-lpc
new file mode 100755 (executable)
index 0000000..d431613
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+cmds=/tmp/flash$$
+trap "rm $cmds" 0 1 15
+echo "reset" > $cmds
+openocd \
+       -f interface/stlink-v2.cfg \
+       -f target/lpc11xx.cfg \
+       -f $cmds \
+       -c shutdown