diff --git a/scripts/gardenshed/gdb-client.sh b/scripts/gardenshed/gdb-client.sh new file mode 100755 index 0000000000..72c989aadf --- /dev/null +++ b/scripts/gardenshed/gdb-client.sh @@ -0,0 +1,10 @@ +#!/bin/bash +a=`uname` +if [[ "$a" == "Linux" ]]; then + /usr/bin/gdb-multiarch -ex 'target remote :3333' ./spade.elf +else + /opt/homebrew/bin/arm-none-eabi-gdb -ex 'target remote :3333' ./spade.elf +fi + + + diff --git a/scripts/gardenshed/gdb-server.sh b/scripts/gardenshed/gdb-server.sh new file mode 100755 index 0000000000..e0f15a1224 --- /dev/null +++ b/scripts/gardenshed/gdb-server.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +sudo openocd -f interface/cmsis-dap.cfg -f target/rp2040.cfg -c "adapter speed 5000" -c "program ./spade.elf verify reset"