summaryrefslogtreecommitdiff
path: root/compile
diff options
context:
space:
mode:
Diffstat (limited to 'compile')
-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"