Skip to content

Unable to flash to pico via SWD on raspberry pi 4 #62

@ddcbrd

Description

@ddcbrd

When i try to flash my program to the pico via SWD on my raspberry pi 4, it complains about not being able to find the bcm2835gpio debug interface. I'm using the binary provided by the extension. This method has worked for me for the past year, but i can't get it to work with the binary the extension provides.

This is the task configuration in tasks.json.

     {
            "label": "Flash",
            "type": "process",
            "command": "${userHome}/.pico-sdk/openocd/0.12.0+dev/openocd",
            "args": [
                "-s",
                "${userHome}/.pico-sdk/openocd/0.12.0+dev/scripts",
                "-f",
                "interface/raspberrypi-native.cfg",
                "-f",
                "target/rp2040.cfg",
                "-c",
                "adapter speed 5000; program \"${command:raspberry-pi-pico.launchTargetPath}\" verify reset exit"
            ],
            "problemMatcher": [],
            "windows": {
                "command": "${env:USERPROFILE}/.pico-sdk/openocd/0.12.0+dev/openocd.exe",
            }
        }

Please let me know if i can provide more information regarding this issue. Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions