diff --git a/examples/stm32/.vscode/launch.json b/examples/stm32/.vscode/launch.json new file mode 100644 index 0000000..414dad8 --- /dev/null +++ b/examples/stm32/.vscode/launch.json @@ -0,0 +1,33 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Debug Microcontroller - OpenOCD", + "cwd": "${workspaceFolder}", + "type": "cortex-debug", + "executable": "${command:cmake.launchTargetPath}", //or fixed file path: build/stm32h735g-dk-led.elf + "request": "launch", //Use "attach" to connect to target w/o elf download + "servertype": "openocd", + "device": "STM32F401CE", //MCU used, ex. "STM32H735IG" + "interface": "swd", + "serialNumber": "", //Set ST-Link ID if you use multiple at the same time + "runToEntryPoint": "main", + "v1": false, + "showDevDebugOutput": "both", + "configFiles": [ + "interface/stlink.cfg", + "target/stm32f4x.cfg" + ], + "postLaunchCommands": [ + "monitor arm semihosting enable", + ], + "liveWatch": { + "enabled": true, + "samplesPerSecond": 1 + } + } + ] +} \ No newline at end of file diff --git a/examples/stm32/.vscode/tasks.json b/examples/stm32/.vscode/tasks.json new file mode 100644 index 0000000..529ff01 --- /dev/null +++ b/examples/stm32/.vscode/tasks.json @@ -0,0 +1,14 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "cmake", + "label": "CMake: build", + "command": "build", + "preset": "${command:cmake.activeBuildPresetName}", + "group": "build", + "problemMatcher": [], + "detail": "CMake template build task" + } + ] +} \ No newline at end of file