Initial Commit - Copy from Altus Metrum AltOS
This commit is contained in:
17
ao-tools/ao-flash/ao-flash-lpc
Executable file
17
ao-tools/ao-flash/ao-flash-lpc
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
case "$#" in
|
||||
0)
|
||||
echo "usage: $0 <filename> ..."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
cmds=/tmp/flash$$
|
||||
trap "rm $cmds" 0 1 15
|
||||
file="$1"
|
||||
echo "program $file reset" > $cmds
|
||||
openocd \
|
||||
-f interface/stlink-v2.cfg \
|
||||
-f target/lpc11xx.cfg \
|
||||
-c 'adapter speed 1000' \
|
||||
-f $cmds \
|
||||
-c shutdown
|
Reference in New Issue
Block a user