diff options
| author | Bdale Garbee <bdale@gag.com> | 2018-10-08 16:06:29 -0600 |
|---|---|---|
| committer | Bdale Garbee <bdale@gag.com> | 2018-10-08 16:06:29 -0600 |
| commit | 6f25d2359151fb114e22bf8e3b15c007cfb464b5 (patch) | |
| tree | 1288d05f7218cf30cfc2fa6ce885351cdb34dc9d /ao-tools/ao-flash/ao-reset-lpc | |
| parent | 2bcbd39a37cf1fa0002345d5c401869a387dc84f (diff) | |
add new script that uses openocd to reset an LPC target
Diffstat (limited to 'ao-tools/ao-flash/ao-reset-lpc')
| -rwxr-xr-x | ao-tools/ao-flash/ao-reset-lpc | 9 |
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 |
