raspberrypi / pico-vscode

The official VS Code extension for Raspberry Pi Pico development. It includes several features to simplify project creation and deployment.
https://marketplace.visualstudio.com/items?itemName=raspberry-pi.raspberry-pi-pico
Mozilla Public License 2.0
132 stars 16 forks source link

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

Closed ddcbrd closed 2 months ago

ddcbrd commented 2 months ago

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

paulober commented 2 months ago

Thanks for reporting this issue. I was able to reproduce your issue and working on a patch that should fix this.