aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"