-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from will-v-pi/main
Fix project name in generated launch.json
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// 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/{{project-name}}", | ||
"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" | ||
} | ||
] | ||
} |
This file contains 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