Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8374

General • Re: Unable to debug my Pico 2 W using debug probe

$
0
0
Hi all. I've managed to fix the issue now.

After looking at the parameters for generating the make file using cmake, I didn't specify the type of board and was relying on some defaults.

Code:

cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DPICO_BOARD=pico2_w .
Followed by:

Code:

sudo openocd -f interface/cmsis-dap.cfg -f target/rp2350.cfg -c "adapter speed 5000"
I was then able to use Eclipse and debug my application as usual :-D

Statistics: Posted by nasher100 — Fri Jan 23, 2026 6:34 pm



Viewing all articles
Browse latest Browse all 8374

Trending Articles