|
@@ -6,47 +6,59 @@
|
|
*/
|
|
*/
|
|
"version": "0.2.0",
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
"configurations": [
|
|
|
|
+ // {
|
|
|
|
+ // "type": "cortex-debug",
|
|
|
|
+ // "request": "launch",
|
|
|
|
+ // "name": "Debug (QEMU)",
|
|
|
|
+ // "servertype": "qemu",
|
|
|
|
+ // "cwd": "${workspaceRoot}",
|
|
|
|
+ // "preLaunchTask": "Cargo Build (debug)",
|
|
|
|
+ // "runToMain": true,
|
|
|
|
+ // "executable": "./target/thumbv7m-none-eabi/debug/nixie-clock-in-8",
|
|
|
|
+ // /* 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",
|
|
|
|
+ // "machine": "lm3s6965evb",
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // /* Configuration for the STM32F303 Discovery board */
|
|
|
|
+ // "type": "cortex-debug",
|
|
|
|
+ // "request": "launch",
|
|
|
|
+ // "name": "Debug (OpenOCD)",
|
|
|
|
+ // "servertype": "openocd",
|
|
|
|
+ // "cwd": "${workspaceRoot}",
|
|
|
|
+ // "preLaunchTask": "Cargo Build (debug)",
|
|
|
|
+ // "runToMain": true,
|
|
|
|
+ // "executable": "./target/thumbv7em-none-eabihf/debug/nixie-clock-in-8",
|
|
|
|
+ // /* Run `cargo build --example itm` and uncomment this line to run itm example */
|
|
|
|
+ // // "executable": "./target/thumbv7em-none-eabihf/debug/examples/itm",
|
|
|
|
+ // "device": "STM32F303VCT6",
|
|
|
|
+ // "configFiles": [
|
|
|
|
+ // "interface/stlink-v2-1.cfg",
|
|
|
|
+ // "target/stm32f3x.cfg"
|
|
|
|
+ // ],
|
|
|
|
+ // "svdFile": "${workspaceRoot}/.vscode/STM32F303.svd",
|
|
|
|
+ // "swoConfig": {
|
|
|
|
+ // "enabled": true,
|
|
|
|
+ // "cpuFrequency": 8000000,
|
|
|
|
+ // "swoFrequency": 2000000,
|
|
|
|
+ // "source": "probe",
|
|
|
|
+ // "decoders": [
|
|
|
|
+ // { "type": "console", "label": "ITM", "port": 0 }
|
|
|
|
+ // ]
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
{
|
|
{
|
|
"type": "cortex-debug",
|
|
"type": "cortex-debug",
|
|
"request": "launch",
|
|
"request": "launch",
|
|
- "name": "Debug (QEMU)",
|
|
|
|
- "servertype": "qemu",
|
|
|
|
|
|
+ "name": "Debug (gdb-remote)",
|
|
|
|
+ "servertype": "external",
|
|
"cwd": "${workspaceRoot}",
|
|
"cwd": "${workspaceRoot}",
|
|
"preLaunchTask": "Cargo Build (debug)",
|
|
"preLaunchTask": "Cargo Build (debug)",
|
|
"runToMain": true,
|
|
"runToMain": true,
|
|
- "executable": "./target/thumbv7m-none-eabi/debug/{{project-name}}",
|
|
|
|
- /* 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",
|
|
|
|
- "machine": "lm3s6965evb",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- /* Configuration for the STM32F303 Discovery board */
|
|
|
|
- "type": "cortex-debug",
|
|
|
|
- "request": "launch",
|
|
|
|
- "name": "Debug (OpenOCD)",
|
|
|
|
- "servertype": "openocd",
|
|
|
|
- "cwd": "${workspaceRoot}",
|
|
|
|
- "preLaunchTask": "Cargo Build (debug)",
|
|
|
|
- "runToMain": true,
|
|
|
|
- "executable": "./target/thumbv7em-none-eabihf/debug/{{project-name}}",
|
|
|
|
- /* Run `cargo build --example itm` and uncomment this line to run itm example */
|
|
|
|
- // "executable": "./target/thumbv7em-none-eabihf/debug/examples/itm",
|
|
|
|
- "device": "STM32F303VCT6",
|
|
|
|
- "configFiles": [
|
|
|
|
- "interface/stlink-v2-1.cfg",
|
|
|
|
- "target/stm32f3x.cfg"
|
|
|
|
- ],
|
|
|
|
- "svdFile": "${workspaceRoot}/.vscode/STM32F303.svd",
|
|
|
|
- "swoConfig": {
|
|
|
|
- "enabled": true,
|
|
|
|
- "cpuFrequency": 8000000,
|
|
|
|
- "swoFrequency": 2000000,
|
|
|
|
- "source": "probe",
|
|
|
|
- "decoders": [
|
|
|
|
- { "type": "console", "label": "ITM", "port": 0 }
|
|
|
|
- ]
|
|
|
|
- }
|
|
|
|
|
|
+ "executable": "./target/thumbv7em-none-eabihf/debug/nixie-clock-in-8",
|
|
|
|
+ "gdbTarget": "10.3.0.19:3333",
|
|
|
|
+ "gdbPath": "/usr/bin/gdb-multiarch"
|
|
}
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|