Fix VSCode launch config
This commit is contained in:
18
.vscode/launch.json
vendored
18
.vscode/launch.json
vendored
@@ -14,7 +14,7 @@
|
||||
"cwd": "${workspaceRoot}",
|
||||
"preLaunchTask": "Cargo Build (debug)",
|
||||
"runToEntryPoint": "main",
|
||||
"executable": "./target/thumbv7m-none-eabi/debug/{{project-name}}",
|
||||
"executable": "./target/thumbv7m-none-eabi/debug/embedded-rs",
|
||||
/* Run `cargo build --example hello` and uncomment this line to run semi-hosting example */
|
||||
//"executable": "./target/thumbv7m-none-eabi/debug/examples/hello",
|
||||
"cpu": "cortex-m3",
|
||||
@@ -29,7 +29,7 @@
|
||||
"cwd": "${workspaceRoot}",
|
||||
"preLaunchTask": "Cargo Build (debug)",
|
||||
"runToEntryPoint": "main",
|
||||
"executable": "./target/thumbv7em-none-eabihf/debug/{{project-name}}",
|
||||
"executable": "./target/thumbv7em-none-eabihf/debug/embedded-rs",
|
||||
/* Run `cargo build --example itm` and uncomment this line to run itm example */
|
||||
// "executable": "./target/thumbv7em-none-eabihf/debug/examples/itm",
|
||||
"device": "STM32F303VCT6",
|
||||
@@ -44,9 +44,17 @@
|
||||
"swoFrequency": 2000000,
|
||||
"source": "probe",
|
||||
"decoders": [
|
||||
{ "type": "console", "label": "ITM", "port": 0 }
|
||||
{
|
||||
"type": "console",
|
||||
"label": "ITM",
|
||||
"port": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"gdbPath": "gdb",
|
||||
"postLaunchCommands": [
|
||||
"monitor arm semihosting enable"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
34
.vscode/tasks.json
vendored
34
.vscode/tasks.json
vendored
@@ -10,9 +10,11 @@
|
||||
* so we can invoke it from the debug launcher.
|
||||
*/
|
||||
"label": "Cargo Build (debug)",
|
||||
"type": "process",
|
||||
"type": "shell",
|
||||
"command": "cargo",
|
||||
"args": ["build"],
|
||||
"args": [
|
||||
"build"
|
||||
],
|
||||
"problemMatcher": [
|
||||
"$rustc"
|
||||
],
|
||||
@@ -23,9 +25,12 @@
|
||||
},
|
||||
{
|
||||
"label": "Cargo Build (release)",
|
||||
"type": "process",
|
||||
"type": "shell",
|
||||
"command": "cargo",
|
||||
"args": ["build", "--release"],
|
||||
"args": [
|
||||
"build",
|
||||
"--release"
|
||||
],
|
||||
"problemMatcher": [
|
||||
"$rustc"
|
||||
],
|
||||
@@ -34,8 +39,11 @@
|
||||
{
|
||||
"label": "Cargo Build Examples (debug)",
|
||||
"type": "process",
|
||||
"command": "cargo",
|
||||
"args": ["build","--examples"],
|
||||
"command": "shell",
|
||||
"args": [
|
||||
"build",
|
||||
"--examples"
|
||||
],
|
||||
"problemMatcher": [
|
||||
"$rustc"
|
||||
],
|
||||
@@ -43,9 +51,13 @@
|
||||
},
|
||||
{
|
||||
"label": "Cargo Build Examples (release)",
|
||||
"type": "process",
|
||||
"type": "shell",
|
||||
"command": "cargo",
|
||||
"args": ["build","--examples", "--release"],
|
||||
"args": [
|
||||
"build",
|
||||
"--examples",
|
||||
"--release"
|
||||
],
|
||||
"problemMatcher": [
|
||||
"$rustc"
|
||||
],
|
||||
@@ -53,9 +65,11 @@
|
||||
},
|
||||
{
|
||||
"label": "Cargo Clean",
|
||||
"type": "process",
|
||||
"type": "shell",
|
||||
"command": "cargo",
|
||||
"args": ["clean"],
|
||||
"args": [
|
||||
"clean"
|
||||
],
|
||||
"problemMatcher": [],
|
||||
"group": "build"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user