summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-10-01 08:43:54 +0200
committerThomas White <taw@physics.org>2023-10-01 08:43:54 +0200
commit632dedc23ed394e6a83cef2e5f0cdc3ae6aae443 (patch)
tree6ee38620f3285572cdafbe0b6493adb6bb7fbccb
parentba6556bec0920957b89ef4c69decb9b15d81a6f0 (diff)
Add OpenOCD upload
-rwxr-xr-xcompile3
1 files changed, 3 insertions, 0 deletions
diff --git a/compile b/compile
index 2586e78..3e29e1f 100755
--- a/compile
+++ b/compile
@@ -7,3 +7,6 @@ cd build
cmake .. -DPICO_BOARD=pico
cd ..
make -C build
+if [ $? != 0 ]; then exit 1; fi
+
+openocd -f interface/cmsis-dap.cfg -f target/rp2040.cfg -c "adapter speed 5000" -c "program build/pixelhub.elf verify reset exit"