]> code.bitgloo.com Git - clyne/zig-stm32l476.git/commitdiff
add openocd script
authorClyne Sullivan <clyne@bitgloo.com>
Sat, 5 Oct 2024 22:04:05 +0000 (18:04 -0400)
committerClyne Sullivan <clyne@bitgloo.com>
Sat, 5 Oct 2024 22:04:05 +0000 (18:04 -0400)
upload.sh [new file with mode: 0755]

diff --git a/upload.sh b/upload.sh
new file mode 100755 (executable)
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"
+