Skip to content

cannot launch Pico-Debug (Cortex Debug) on Windows #67

@jdbruner

Description

@jdbruner

Attempting to debug with openocd on Windows fails, because the launch configuration in launch.json contains this:

    "overrideLaunchCommands": [
        "monitor reset init",
        "load \"${command:raspberry-pi-pico.launchTargetPath}\""
    ],

On Windows, launchTargetPath is delimited by backslashes - which are interpreted as escape sequences, so the load command fails (file not found).

A workaround is to delete this (assuming the image is going into flash). An alternative workaround is to use the command variable extension and replace the backslashes with forward slashes.

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