aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-09-17 18:03:12 +0200
committerThomas White <taw@physics.org>2023-09-17 18:05:55 +0200
commitb30fd2ebe33330f6511ebac049ba5a8f47e97722 (patch)
tree82751774a2ddbd4845aea02fa0fe7ef57f44ff9c
parente069bdfd480cb1927e05d3155721b81f919d294f (diff)
compile: Add OpenOCD upload
-rwxr-xr-xcompile4
1 files changed, 4 insertions, 0 deletions
diff --git a/compile b/compile
index 6a63079..9c67130 100755
--- a/compile
+++ b/compile
@@ -7,6 +7,10 @@ cd build
cmake .. -DPICO_BOARD=pico_w \
-DWIFI_SSID=MyWifi \
-DWIFI_PASSWORD=MyPassword
+if [ $? != 0 ]; then exit 1; fi
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/morningtown.elf verify reset exit"