altos: Start work on stm32f1 support
[fw/altos] / src / stm32f1 / openocd-stm32f1
diff --git a/src/stm32f1/openocd-stm32f1 b/src/stm32f1/openocd-stm32f1
new file mode 100755 (executable)
index 0000000..20b074e
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+#OPENOCD=openocd
+#OPENOCD=/usr/bin/openocd
+#OPENOCD=/local/src/openocd/src/openocd
+OPENOCD=/local/bin/openocd
+exec $OPENOCD \
+       -f interface/stlink.cfg \
+       -c 'transport select hla_swd' \
+       -f target/stm32f1x.cfg -c init \
+       -c 'reset halt' \
+       -c 'stm32f1x.cpu arm semihosting enable' \
+       "$@"