PicoDVI icon indicating copy to clipboard operation
PicoDVI copied to clipboard

vscode support

Open mlorenzati opened this issue 3 years ago • 0 comments

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"
    }
}

mlorenzati avatar Jan 22 '22 00:01 mlorenzati