projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ao-bringup: get turnon_easymega working for v2.0
[fw/altos]
/
ao-tools
/
ao-flash
/
ao-flash-stm
diff --git
a/ao-tools/ao-flash/ao-flash-stm
b/ao-tools/ao-flash/ao-flash-stm
old mode 100644
(file)
new mode 100755
(executable)
index
c5aeb7a
..
a20428f
--- a/
ao-tools/ao-flash/ao-flash-stm
+++ b/
ao-tools/ao-flash/ao-flash-stm
@@
-7,15
+7,10
@@
case "$#" in
esac
cmds=/tmp/flash$$
trap "rm $cmds" 0 1 15
esac
cmds=/tmp/flash$$
trap "rm $cmds" 0 1 15
-for file in "$@"; do
- echo "flash write_image $file"
-done > $cmds
+file="$1"
+echo "program $file reset" > $cmds
openocd \
-f interface/stlink-v2.cfg \
openocd \
-f interface/stlink-v2.cfg \
- -f target/stm32lx_stlink.cfg \
- -c init \
- -c 'reset halt' \
+ -f target/stm32l1.cfg \
-f $cmds \
-f $cmds \
- -c 'reset init' \
- -c 'reset run' \
-c shutdown
-c shutdown