summaryrefslogtreecommitdiff
path: root/bsp/tools
diff options
context:
space:
mode:
Diffstat (limited to 'bsp/tools')
-rwxr-xr-xbsp/tools/openocd_upload.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/bsp/tools/openocd_upload.sh b/bsp/tools/openocd_upload.sh
new file mode 100755
index 0000000..afa9dad
--- /dev/null
+++ b/bsp/tools/openocd_upload.sh
@@ -0,0 +1,5 @@
+#! /bin/bash -x
+
+openocd -f ${2} \
+ -c "flash protect 0 64 last off; program ${1}; resume 0x20400000; exit" \
+ 2>&1 | tee openocd_upload.log