aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2024-10-05 18:04:05 -0400
committerClyne Sullivan <clyne@bitgloo.com>2024-10-05 18:04:05 -0400
commitbf74c7079c74f33a174f21d5c58fdaf70c20b964 (patch)
tree57b96722f469bdf7df36fec7112b9d5048163f3e
parented84840b0ff133b515a245ca8f7f1347b6bc4336 (diff)
add openocd script
-rwxr-xr-xupload.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/upload.sh b/upload.sh
new file mode 100755
index 0000000..a1d363e
--- /dev/null
+++ b/upload.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+objcopy -Oihex zig-out/bin/stm32 zig-out/bin/stm32.hex
+openocd -f interface/stlink.cfg -f target/stm32l4x.cfg -c "program zig-out/bin/stm32.hex verify reset exit"
+