summaryrefslogtreecommitdiff
path: root/ao-tools/ao-flash/ao-reset-lpc
diff options
context:
space:
mode:
authorBdale Garbee <bdale@gag.com>2018-10-08 16:06:29 -0600
committerBdale Garbee <bdale@gag.com>2018-10-08 16:06:29 -0600
commit6f25d2359151fb114e22bf8e3b15c007cfb464b5 (patch)
tree1288d05f7218cf30cfc2fa6ce885351cdb34dc9d /ao-tools/ao-flash/ao-reset-lpc
parent2bcbd39a37cf1fa0002345d5c401869a387dc84f (diff)
add new script that uses openocd to reset an LPC target
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