Last active
October 21, 2022 21:28
-
-
Save azechi/841162922027cc67a3e59ccc6f2647d4 to your computer and use it in GitHub Desktop.
RPi Pico + picoprobe + WSL2 + VSCode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"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