Initial Commit - Copy from Altus Metrum AltOS

This commit is contained in:
2024-06-25 19:03:04 +02:00
commit 13fc49c923
2048 changed files with 1206748 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
#!/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 verify reset" > $cmds
openocd \
-f interface/stlink.cfg \
-f target/stm32f0x.cfg \
-f $cmds \
-c shutdown