summaryrefslogtreecommitdiff
path: root/ao-tools/ao-flash/ao-reset-lpc
diff options
context:
space:
mode:
Diffstat (limited to 'ao-tools/ao-flash/ao-reset-lpc')
-rwxr-xr-xao-tools/ao-flash/ao-reset-lpc9
1 files changed, 9 insertions, 0 deletions
diff --git a/ao-tools/ao-flash/ao-reset-lpc b/ao-tools/ao-flash/ao-reset-lpc
new file mode 100755
index 00000000..d4316136
--- /dev/null
+++ b/ao-tools/ao-flash/ao-reset-lpc
@@ -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