Note that RP2 (debug target) should be powered, too.
You may need to upgrade usbipd : https://github.com/dorssel/usbipd-win/releases
usbipd listto find the Picoprobe's BUSID
It will look like:2-2 2e8a:000c CMSIS-DAP v2 Interface, USB シリアル デバイス (COM10) Shared- If it is
2-2 2e8a:000c CMSIS-DAP v2 Interface, USB シリアル デバイス (COM10) Not shared, runusbipd bind -b 2-2to make it shared - Then
usbipd attach --wsl -b 2-2usbipd listwill changes like:2-2 2e8a:000c CMSIS-DAP v2 Interface, USB シリアル デバイス (COM10) Attached
openocd-rp2040oropenocd-rp2350
-DCMAKE_BUILD_TYPE=Debug has to be defined in build process.
Note that Debug is only valid option while debug and DEBUG are not valid.
In R2P2, rake pico_debug is what you need.
gdb-pico build/[project].elf- In the gdb's REPL
loadto upload the elfmonitor reset initto initcto start (alias for continue)monitor reset haltto reboot
sudo apt-get install libusb-1.0-0-dev libtool
git clone https://github.com/raspberrypi/openocd.git --branch sdk-2.0.0 --depth=1 --no-single-branch
cd openocd
./bootstrap
./configure --disable-werror
make
sudo make installsudo cp contrib/60-openocd.rules /etc/udev/rules.d/sudo apt install gdb-multiarchalias openocd-rp2040="/usr/local/bin/openocd -f interface/cmsis-dap.cfg -c 'adapter speed 5000' -f target/rp2040.cfg -s tcl"
alias openocd-rp2350="/usr/local/bin/openocd -s tcl -f interface/cmsis-dap.cfg -f target/rp2350.cfg -c 'adapter speed 5000'"
function gdb-pico() {
gdb-multiarch -ex "target remote localhost:3333" $*
}
alias gdb-pico=gdb-picowinget install usbipdFor Arm Windows, you can download usb-ipd.exe from https://github.com/dorssel/usbipd-win

Thank you for considering my comment.
I think the following line has a typo:
I believe it should instead be: