Skip to content

Instantly share code, notes, and snippets.

@azechi
Last active October 21, 2022 21:28
Show Gist options
  • Save azechi/841162922027cc67a3e59ccc6f2647d4 to your computer and use it in GitHub Desktop.
Save azechi/841162922027cc67a3e59ccc6f2647d4 to your computer and use it in GitHub Desktop.
RPi Pico + picoprobe + WSL2 + VSCode
{
"folders": [
{
"uri": "vscode-remote://wsl+debian/home/azechi/projects/pico/study"
}
],
"remoteAuthority": "wsl+Debian",
"settings": {
"task.allowAutomaticTasks": "on"
},
"tasks": {
"version": "2.0.0",
"tasks": [
{
"label": "launch OpenOCD",
"type": "shell",
"command": "/mnt/c/msys64/home/azechi/openocd/src/openocd.exe",
"args": [
"-f",
{
"value": "`wslpath -w ${extensionInstallFolder:marus25.cortex-debug}`/support/openocd-helpers.tcl",
"quoting": "weak"
},
"-s",
{
"value": "`wslpath -w /mnt/c/msys64/home/azechi/openocd/tcl`",
"quoting": "weak"
},
"-f",
"interface/picoprobe.cfg",
"-f",
"target/rp2040.cfg",
"-c",
{
"value": "bindto 0.0.0.0",
"quoting": "escape"
}
],
"isBackground": true,
"runOptions": {
"runOn": "folderOpen"
},
"presentation": {
"echo": true,
"reveal": "silent",
"focus": false,
"panel": "dedicated",
"showReuseMessage": false,
"clear": true
},
"problemMatcher": []
},
{
"label": "COM5",
"type": "shell",
"options": {
"shell": {
"executable": "cmd.exe",
"args": [
"/C"
]
}
},
"command": "%USERPROFILE%/anaconda3/scripts/activate.bat base & python -m serial.tools.miniterm COM5 115200",
"problemMatcher": []
}
]
},
"launch": {
"version": "0.2.0",
"configurations": [
{
"name": "Pico Debug",
"cwd": "${workspaceRoot}",
"executable": "${command:cmake.launchTargetPath}",
"request": "launch",
"type": "cortex-debug",
"servertype": "external",
"gdbPath": "gdb-multiarch",
"objdumpPath": "/usr/bin/arm-none-eabi-objdump",
"gdbTarget": "172.17.64.1:3333",
"device": "RP2040",
"svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd",
"runToEntryPoint": "main",
"postRestartCommands": [
"break main",
"continue"
],
//"showDevDebugOutput": "raw",
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment