diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2024-10-05 18:04:05 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2024-10-05 18:04:05 -0400 |
commit | bf74c7079c74f33a174f21d5c58fdaf70c20b964 (patch) | |
tree | 57b96722f469bdf7df36fec7112b9d5048163f3e | |
parent | ed84840b0ff133b515a245ca8f7f1347b6bc4336 (diff) |
add openocd script
-rwxr-xr-x | upload.sh | 5 |
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" + |