54 lines
2.1 KiB
JSON
54 lines
2.1 KiB
JSON
|
{
|
||
|
/*
|
||
|
* Requires the Rust Language Server (RLS) and Cortex-Debug extensions
|
||
|
* https://marketplace.visualstudio.com/items?itemName=rust-lang.rust
|
||
|
* https://marketplace.visualstudio.com/items?itemName=marus25.cortex-debug
|
||
|
*/
|
||
|
"version": "0.2.0",
|
||
|
"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/app",
|
||
|
/* 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",
|
||
|
},
|
||
|
{
|
||
|
"type": "cortex-debug",
|
||
|
"request": "launch",
|
||
|
"name": "Debug (OpenOCD)",
|
||
|
"servertype": "openocd",
|
||
|
"cwd": "${workspaceRoot}",
|
||
|
"preLaunchTask": "Cargo Build (debug)",
|
||
|
"runToMain": true,
|
||
|
"executable": "./target/thumbv7em-none-eabihf/debug/app",
|
||
|
/* Run `cargo build --example itm` and uncomment this line to run itm example */
|
||
|
// "executable": "./target/thumbv7em-none-eabihf/debug/examples/itm",
|
||
|
"device": "NRF52832",
|
||
|
"configFiles": [
|
||
|
"/usr/local/share/openocd/scripts/interface/jlink.cfg",
|
||
|
"/usr/local/share/openocd/scripts/board/nordic_nrf52_dk.cfg"
|
||
|
],
|
||
|
// "svdFile": "${workspaceRoot}/.vscode/STM32F303.svd",
|
||
|
"swoConfig": {
|
||
|
"enabled": true,
|
||
|
"cpuFrequency": 8000000,
|
||
|
"swoFrequency": 2000000,
|
||
|
"source": "probe",
|
||
|
"decoders": [
|
||
|
{ "type": "console", "label": "ITM", "port": 0 }
|
||
|
]
|
||
|
},
|
||
|
"preLaunchCommands": [
|
||
|
"monitor arm semihosting enable"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}
|