embedded-rust/.vscode/launch.json
2021-06-05 08:07:04 +02:00

32 lines
1.0 KiB
JSON

{
"version": "0.2.0",
"configurations": [
{
"type": "cortex-debug",
"request": "launch",
"name": "Debug (OpenOCD)",
"servertype": "openocd",
"cwd": "${workspaceRoot}",
"preLaunchTask": "Cargo Build (debug)",
"runToMain": true,
"executable": "./target/thumbv7em-none-eabihf/debug/nrf52-dk-app",
"device": "NRF52832",
"configFiles": [
"/usr/local/share/openocd/scripts/interface/jlink.cfg",
"/usr/local/share/openocd/scripts/board/nordic_nrf52_dk.cfg"
],
"swoConfig": {
"enabled": true,
"cpuFrequency": 8000000,
"swoFrequency": 2000000,
"source": "probe",
"decoders": [
{ "type": "console", "label": "ITM", "port": 0 }
]
},
"preLaunchCommands": [
"monitor arm semihosting enable"
]
}
]
}