Deploy to Pi Pico without SWD?

Sysprogs forums Forums VisualGDB Deploy to Pi Pico without SWD?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31581
    ShiningMasamune
    Participant

    Hi all, just getting starting using VisualGDB to develop for Pi Pico with Visual Studio. The documentation page “Debugging Raspberry Pi Pico via SWD” says “Note that the on-board FLASH memory can be programmed via the bootloader and does not require SWD wiring.”  But there is no documentation about how to do this?  By default, trying to hit Run in Visual Studio just pops up an error dialog with the super unhelpful message “Failed to program 1 out of 5 sections”

    I know that I can hold the BOOTSEL button, replug the USB, and copy uf2 file to the board myself. But that’s a huge pain, how do I set up VisualGDB to do this automatically? I know there are other IDEs that can do this.  I don’t need debugging functionality, I just want to use Visual Studio to develop and deploy.

    #31587
    support
    Keymaster

    Hi,

    The documentation indeed refers to copying the UF2 file. We are not aware of any other ways to program the Raspberry Pi Pico memory without the SWD pins.

    On the VisualGDB side you can automate copying of the UF2 file by creating a custom shortcut (simply use “cmd.exe /c copy …” command to copy the UF2 file to the device), however you would still need to press the BOOTSEL button and reset the device in order to enter the bootloader, unless you can find a programmatic way to do it from your firmware.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.