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

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

$
0
0
Hi all.

I've recently purchase a Raspberry Pi Pico 2 W from a company called Waveshare on Amazon, along with the official debug probe.
my development environment is Linux, running Eclipse.

I'm trying to deploy a very basic program and step through this within the debugger, but I'm presented with the following error:

Code:

Open On-Chip Debugger 0.12.0+dev-00002-gcd4873400 (2026-01-14-21:54)Licensed under GNU GPL v2For bug reports, readhttp://openocd.org/doc/doxygen/bugs.htmlDEPRECATED! use 'gdb port', not 'gdb_port'DEPRECATED! use 'telnet port', not 'telnet_port'DEPRECATED! use 'tcl port' not 'tcl_port'adapter speed: 5000 kHzInfo : [rp2350.cm0] Hardware thread awareness createdInfo : [rp2350.cm1] Hardware thread awareness createdocd_process_reset_inneradapter speed: 5000 kHzStarted by GNU MCU EclipseInfo : Listening on port 6666 for tcl connectionsInfo : Listening on port 4444 for telnet connectionsInfo : Using CMSIS-DAPv2 interface with VID:PID=0x2e8a:0x000c, serial=E66258881749872DInfo : CMSIS-DAP: SWD supportedInfo : CMSIS-DAP: Atomic commands supportedInfo : CMSIS-DAP: Test domain timer supportedInfo : CMSIS-DAP: FW Version = 2.0.0Info : CMSIS-DAP: Interface Initialised (SWD)Info : SWCLK/TCK = 0 SWDIO/TMS = 0 TDI = 0 TDO = 0 nTRST = 0 nRESET = 0Info : CMSIS-DAP: Interface readyInfo : clock speed 5000 kHzInfo : SWD DPIDR 0x4c013477 DPv3Info : [rp2350.cm0] Cortex-M33 r1p0 processor detectedInfo : [rp2350.cm0] target has 8 breakpoints, 4 watchpointsInfo : [rp2350.cm0] Examination succeedInfo : [rp2350.cm1] Cortex-M33 r1p0 processor detectedInfo : [rp2350.cm1] target has 8 breakpoints, 4 watchpointsInfo : [rp2350.cm1] Examination succeedInfo : [rp2350.cm0] starting gdb server on 3333Info : Listening on port 3333 for gdb connectionsInfo : accepting 'gdb' connection on tcp/3333[rp2350.cm0] halted due to breakpoint, current mode: Thread xPSR: 0x61000000 pc: 0x2001041e msp: 0x20010400[rp2350.cm1] halted due to debug-request, current mode: Thread xPSR: 0x09000000 pc: 0x000000da msp: 0xf0000000Info : RP2350 rev 2, QSPI Flash win w25q32fv/jv id = 0x1640ef size = 4096 KiB in 1024 sectorsInfo : New GDB Connection: 1, Target rp2350.cm0, state: haltedWarn : Prefer GDB command "target extended-remote :3333" instead of "target remote :3333"[rp2350.cm0] halted due to debug-request, current mode: Thread xPSR: 0xf9000000 pc: 0x00000088 msp: 0xf0000000[rp2350.cm1] halted due to debug-request, current mode: Thread xPSR: 0xf9000000 pc: 0x00000088 msp: 0xf0000000Info : RP2xxx ROM API function FC @ 3711[rp2350.cm0] halted due to debug-request, current mode: Thread xPSR: 0xf9000000 pc: 0x00000088 msp: 0xf0000000, semihosting[rp2350.cm1] halted due to debug-request, current mode: Thread xPSR: 0xf9000000 pc: 0x00000088 msp: 0xf0000000Info : RP2xxx ROM API function FC @ 3711Info : Padding image section 0 at 0x10005c34 with 4 bytesInfo : Padding image section 1 at 0x1000735c with 164 bytes (bank write end alignment)[rp2350.cm0] halted due to debug-request, current mode: Thread xPSR: 0xf9000000 pc: 0x00000088 msp: 0xf0000000, semihosting[rp2350.cm1] halted due to debug-request, current mode: Thread xPSR: 0xf9000000 pc: 0x00000088 msp: 0xf0000000[rp2350.cm0] halted due to debug-request, current mode: Thread xPSR: 0xf9000000 pc: 0x00000088 msp: 0xf0000000, semihosting[rp2350.cm1] halted due to debug-request, current mode: Thread xPSR: 0xf9000000 pc: 0x00000088 msp: 0xf0000000[b]Info : [rp2350.cm0] external reset detectedInfo : [rp2350.cm1] external reset detected[/b][rp2350.cm1] halted due to debug-request, current mode: Thread xPSR: 0x09000000 pc: 0x000000da msp: 0xf0000000
What I've highlighted in bold is a cause of concern I think. It seems the board is resetting itself, causing the debugger to lose the connection. I've attached a screenshot of my debugging settings but I cannot figure out why this is happening. I've tried two different board too, from the same manufacture.

Any help please? Thanks
Screenshot_20260119_204801.png

Statistics: Posted by nasher100 — Mon Jan 19, 2026 8:49 pm



Viewing all articles
Browse latest Browse all 8013

Trending Articles