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

SDK • Pico as debug probe problem

$
0
0
I installed Visual Studio Code and the Pico Extension on a Pi5. When I tried to start a Debug session I first went instantly into trouble, because the included openocd version did not include the cfg-files for the RP2350 MCU. I downloaded the latest sources and compiled them on my Raspberry Pi5. The missing file .cfg-messages were gone. But that brought me to the next problem. The debug probe found the Pico 2 but the debug session failed shortly afterwards with the messages below. I tried all BootROM versions I could find (have several Pico 1 boards, but I always received the same error messages below.

Code:

adapter speed: 5000 kHzInfo : Listening on port 50001 for tcl connectionsInfo : Listening on port 50002 for telnet connectionsInfo : Using CMSIS-DAPv2 interface with VID:PID=0x2e8a:0x000c, serial=E6616407E31D9A27Info : 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 0x4c013477Info : [rp2350.dap.core0] Cortex-M33 r1p0 processor detectedInfo : [rp2350.dap.core0] target has 8 breakpoints, 4 watchpointsInfo : [rp2350.dap.core1] Cortex-M33 r1p0 processor detectedInfo : [rp2350.dap.core1] target has 8 breakpoints, 4 watchpointsInfo : starting gdb server for rp2350.dap.core0 on 50000Info : Listening on port 50000 for gdb connectionsInfo : accepting 'gdb' connection on tcp/50000Error: Incorrect RP2040 BOOT ROM versionError: Debug trampoline not found in RP2040 ROM.Error: auto_probe failedError: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_map disable'.Error: attempted 'gdb' connection rejectedshutdown command invoked[2024-10-03T21:12:19.306Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session closedGDB server session ended. This terminal will be reused, waiting for next session to start...
Has someone an idea, how to solve this problem?

Statistics: Posted by ElektroLurch2 — Thu Oct 03, 2024 11:02 pm



Viewing all articles
Browse latest Browse all 4788

Trending Articles