Skip to content

Commit

Permalink
Merge pull request #83 from will-v-pi/main
Browse files Browse the repository at this point in the history
Fix project name in generated launch.json
  • Loading branch information
jannic authored Sep 20, 2024
2 parents 4cfa8a7 + 3567f5a commit 84fd7a8
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
45 changes: 45 additions & 0 deletions cargo-generate/launch.json
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"
}
]
}
2 changes: 2 additions & 0 deletions cargo-generate/remove_rprs.rhai
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ file::delete("README.md");
file::delete("debug_probes.md");
file::delete("CODE_OF_CONDUCT.md");
file::delete("Cargo.toml");
file::delete(".vscode/launch.json");
file::rename("cargo-generate/Cargo.toml", "Cargo.toml");
file::rename("cargo-generate/config.toml", ".cargo/config.toml");
file::rename("cargo-generate/launch.json", ".vscode/launch.json");
file::delete("cargo-generate")

0 comments on commit 84fd7a8

Please sign in to comment.