From bf74c7079c74f33a174f21d5c58fdaf70c20b964 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sat, 5 Oct 2024 18:04:05 -0400 Subject: [PATCH] add openocd script --- upload.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 upload.sh 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" +