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

Troubleshooting • Debugging RP2040 Board VS Code

$
0
0
I am following the instructions for debugging RP2040 based boards as found in Getting started with Raspberry Pi Pico. I am currently on section 7.3.1. Running "Hello USB" on the Raspberry Pi Pico. Everything else has worked up until now.
I am running VS Code on a Pi4 Bookworm. When I start Run and Debug I get this error message:

Code:

Failed to launch GDB: localhost:50000: Connection timed out. (from target-select extended-remote localhost:50000)
Here is my launch.json:

Code:

{    "version": "0.2.0",    "configurations": [        {            "name": "Pico Debug",            "cwd": "${workspaceRoot}",            "executable": "${command:cmake.launchTargetPath}",            "request": "launch",            "type": "cortex-debug",            "servertype": "openocd",            // This may need to be "arm-none-eabi-gdb" for some previous builds            "gdbPath" : "gdb-multiarch",            "device": "RP2040",            "configFiles": [                "interface/raspberrypi-swd.cfg",                "target/rp2040.cfg"            ],            "svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd",            "runToEntryPoint": "main",            // Work around for stopping at main on restart            "postRestartCommands": [                "break main",                "continue"            ]        }    ]}

Statistics: Posted by CoastalWalkerRanger — Thu Feb 01, 2024 5:43 pm



Viewing all articles
Browse latest Browse all 4844

Trending Articles