9names de42e40358
Update probe-rs tools to 0.19 (#64)
* Update probe-rs tools to 0.19

* Restore rp2040_boot2 line

* Update runner to use probe-rs run 0.19 syntax

* Update vscode launch command for probe-rs debugger

* Add note about removing older installation of cargo-embed

If you had previously installed cargo-embed separately, it will conflict with the new way probe-rs installs multiple binaries at once.

* Update README.md

Co-authored-by: 9names <60134748+9names@users.noreply.github.com>

---------

Co-authored-by: Jan Niehusmann <jan@gondor.com>
2023-07-27 07:45:43 +10:00

45 lines
1.7 KiB
JSON

// The format of this file is specified in https://probe.rs/docs/tools/vscode/#start-a-debug-session-with-minimum-configuration
{
"version": "0.2.0",
"configurations": [
{
"preLaunchTask": "rust: cargo build",
"type": "probe-rs-debug",
"request": "launch",
"name": "rp2040-project",
"cwd": "${workspaceFolder}",
"chip": "rp2040",
// RP2040 doesn't support connectUnderReset
"connectUnderReset": false,
"speed": 4000,
"runtimeExecutable": "probe-rs",
"runtimeArgs": [
"dap-server"
],
"flashingConfig": {
"flashingEnabled": true,
"resetAfterFlashing": true,
"haltAfterReset": true,
},
"coreConfigs": [
{
"coreIndex": 0,
"programBinary": "target/thumbv6m-none-eabi/debug/rp2040-project-template",
"chip": "RP2040",
// Uncomment this if you've downloaded the SVD from
// https://github.com/raspberrypi/pico-sdk/raw/1.3.1/src/rp2040/hardware_regs/rp2040.svd
// and placed it in the .vscode directory
// "svdFile": "./.vscode/rp2040.svd",
"rttEnabled": true,
"options": {
"env": {
"DEFMT_LOG": "debug"
}
},
}
],
"consoleLogLevel": "Info", //Error, Warn, Info, Debug, Trace
"wireProtocol": "Swd"
}
]
}