diff --git a/.vscode/launch.json b/.vscode/launch.json index 4904bcb481dc7cfd63b375c6705cf98c80289fdd..a47fdba438cde414e0d8c6006caefadd7b6a59a4 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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