Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vscode support #23

Open
mlorenzati opened this issue Jan 22, 2022 · 0 comments
Open

vscode support #23

mlorenzati opened this issue Jan 22, 2022 · 0 comments

Comments

@mlorenzati
Copy link

Superv work you've done here.
Just once thing for the ease of use, I created the .vscode folder config files , helps me to have everything in the same place and setting properly my configs.
you can also add a config just to program "pico burn" through sw with "verify reset exit" after programming
launch.json

{
    "version": "0.2.0",
    "configurations": [
        
            { 
            "name": "Pico Debug",
            "device": "RP2040",
            "gdbPath": "arm-none-eabi-gdb",
            "cwd": "${workspaceRoot}",
            "executable": "${command:cmake.launchTargetPath}",
            "request": "launch",
            "type": "cortex-debug",
            "servertype": "openocd",
            "configFiles": [
                "/interface/picoprobe.cfg",
                "/target/rp2040.cfg"
            ],
            "svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd",
            "runToMain": true,
            "searchDir": ["/Users/marcelo.lorenzati/Dev/IoT/openocd/tcl"],
            "postRestartCommands": [
                "break main",
                "continue"
            ]
        }
    ]
}

settings.json

{
    // These settings tweaks to the cmake plugin will ensure
    // that you debug using cortex-debug instead of trying to launch
    // a Pico binary on the host
    "cmake.statusbar.advanced": {
        "debug": {
            "visibility": "hidden"
        },
        "launch": {
            "visibility": "hidden"
        },
        "build": {
            "visibility": "hidden"
        },
        "buildTarget": {
            "visibility": "hidden"
        }
    },
    "cmake.configureSettings": { "PICO_COPY_TO_RAM": "1", "DVI_DEFAULT_SERIAL_CONFIG" :"picodvi_dvi_cfg" },
    "cmake.buildBeforeRun": true,
    "C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
    "files.associations": {
        "stdlib.h": "c",
        "hello.pio.h": "c",
        "pio.h": "c",
        "marce.pio.h": "c"
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant