Skip to content
Snippets Groups Projects
Commit b2d69e6d authored by Gustav Hansson's avatar Gustav Hansson
Browse files

add debug for examples in launch.json

parent 518e95cd
Branches
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
// Launch configuration for `app`
// - debug
// - semihosting
......@@ -24,6 +25,27 @@
],
"runToMain": true,
"cwd": "${workspaceRoot}"
},
// Launch configuration for `app`
// - debug
// - semihosting
// - run to main
{
"type": "cortex-debug",
"request": "launch",
"servertype": "openocd",
"name": "examples (debug)",
"preLaunchTask": "cargo build --examples",
"executable": "./target/thumbv7em-none-eabihf/debug/examples/${fileBasenameNoExtension}",
"configFiles": [
"interface/stlink-v2-1.cfg",
"target/stm32f4x.cfg"
],
"postLaunchCommands": [
"monitor arm semihosting enable"
],
"runToMain": true,
"cwd": "${workspaceRoot}"
},
// Launch configuration for `examples`
// - debug
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment