add vscode setting to example folder
This commit is contained in:
parent
5a1d2f3adf
commit
45afdcd07b
33
examples/stm32/.vscode/launch.json
vendored
Normal file
33
examples/stm32/.vscode/launch.json
vendored
Normal file
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
14
examples/stm32/.vscode/tasks.json
vendored
Normal file
14
examples/stm32/.vscode/tasks.json
vendored
Normal file
@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user