diff options
author | Thomas White <taw@physics.org> | 2023-09-17 18:03:12 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2023-09-17 18:05:55 +0200 |
commit | b30fd2ebe33330f6511ebac049ba5a8f47e97722 (patch) | |
tree | 82751774a2ddbd4845aea02fa0fe7ef57f44ff9c | |
parent | e069bdfd480cb1927e05d3155721b81f919d294f (diff) |
compile: Add OpenOCD upload
-rwxr-xr-x | compile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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" |