Add VsCode workspace .json configuration files for IntelliSense engine setup, path indexing, recommended extensions, and tasks for debug build flash programming.

This commit is contained in:
2026-09-14 21:03:22 +08:00
parent 041791b6ca
commit 5ba7f18f3a
5 changed files with 141 additions and 0 deletions
+50
View File
@@ -0,0 +1,50 @@
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "ST-Link OpenOCD",
"type": "cortex-debug",
"cwd": "${workspaceFolder}",
"preLaunchTask": "ST-Link Debug-Flash",
"executable": "Build\\Debug\\STM32G030F6P6_Evaluation.elf",
"request": "launch",
"runToEntryPoint": "main",
"servertype": "openocd",
"configFiles": [
"Tools\\Specific_Config\\stlink-interface.cfg",
"Tools\\Specific_Config\\stm32g0x-target.cfg"
],
"liveWatch": {
"enabled": true,
"samplesPerSecond": 4
},
"postLaunchCommands": [
"-enable-pretty-printing"
]
},
{
"name": "CMSIS-DAP OpenOCD",
"type": "cortex-debug",
"cwd": "${workspaceFolder}",
"preLaunchTask": "CMSIS-DAP Debug-Flash",
"executable": "Build\\Debug\\STM32G030F6P6_Evaluation.elf",
"request": "launch",
"runToEntryPoint": "main",
"servertype": "openocd",
"configFiles": [
"Tools\\Specific_Config\\cmsis-dap-interface.cfg",
"Tools\\Specific_Config\\stm32g0x-target.cfg"
],
"liveWatch": {
"enabled": true,
"samplesPerSecond": 4
},
"postLaunchCommands": [
"-enable-pretty-printing"
],
}
]
}