When debug show error message "Failed to launch GDB: .point13:"

image

I have run PlatformIO and click new project.

Selected board to Raspberry Pi Pico and created.
Type in Blink source then click f5.

run build process then show the error message as attached image.

I want to bebug from source.
How do i fix this error message??.

Please let me know your help.

i click open ‘launch.json’ then show the code like below.

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "platformio-debug",
            "request": "launch",
            "name": "PIO Debug",
            "executable": "c:/Users/h_note/Documents/PlatformIO/Projects/test_blink/.pio/build/pico/firmware.elf",
            "projectEnvName": "pico",
            "toolchainBinDir": "C:/Users/h_note/.platformio/packages/toolchain-gccarmnoneeabi/bin",
            "internalConsoleOptions": "openOnSessionStart",
            "svdPath": "C:/Users/h_note/.platformio/platforms/raspberrypi/misc/svd/rp2040.svd",
            "preLaunchTask": {
                "type": "PlatformIO",
                "task": "Pre-Debug"
            }
        },
        {
            "type": "platformio-debug",
            "request": "launch",
            "name": "PIO Debug (skip Pre-Debug)",
            "executable": "c:/Users/h_note/Documents/PlatformIO/Projects/test_blink/.pio/build/pico/firmware.elf",
            "projectEnvName": "pico",
            "toolchainBinDir": "C:/Users/h_note/.platformio/packages/toolchain-gccarmnoneeabi/bin",
            "internalConsoleOptions": "openOnSessionStart",
            "svdPath": "C:/Users/h_note/.platformio/platforms/raspberrypi/misc/svd/rp2040.svd"
        },
        {
            "type": "platformio-debug",
            "request": "launch",
            "name": "PIO Debug (without uploading)",
            "executable": "c:/Users/h_note/Documents/PlatformIO/Projects/test_blink/.pio/build/pico/firmware.elf",
            "projectEnvName": "pico",
            "toolchainBinDir": "C:/Users/h_note/.platformio/packages/toolchain-gccarmnoneeabi/bin",
            "internalConsoleOptions": "openOnSessionStart",
            "svdPath": "C:/Users/h_note/.platformio/platforms/raspberrypi/misc/svd/rp2040.svd",
            "loadMode": "manual"
        }
    ]
}

The Pico board isn’t just made debuggable from nothing, you have to either use an external debug probe (such as a J-Link, or a CMSIS-DAP, or a second Pico board loaded with the picoprobe.uf2 firmware and connected to the first Pico board like documentation chapter “Picoprobe Wiring”) or use the special pico-debug firmware which runs a debug-probe directly on the chip, requiring no second board / external debug probe.

Some of this is documented at Arduino-Pico, but this will also require you to set platform = https://github.com/maxgerhardt/platform-raspberrypi.git instead of platform = raspberrypi.

If you don’t want to change the platform, the standard raspberrypi platform still supports CMSIS-DAP (so also the PicoProbe way), J-Link and RaspberryPi-SWD (if you have a Raspberry Pi SBC) debugging per this.