This commit is contained in:
cbb
2025-12-25 12:07:06 +08:00
commit 26e73f451e
899 changed files with 42812 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
{
"configurations": [
{
"name": "windows-gcc-x86",
"includePath": [
"${workspaceFolder}/**"
],
"compilerPath": "C:/mingw/bin/gcc.exe",
"cStandard": "${default}",
"cppStandard": "${default}",
"intelliSenseMode": "windows-gcc-x86",
"compilerArgs": [
""
]
}
],
"version": 4
}
+84
View File
@@ -0,0 +1,84 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "STLink@Arm-Debugger (launch)",
"type": "arm-debugger",
"request": "launch",
"connectionAddress": "${command:device-manager.getSerialNumber}",
"connectionType": "ST-Link",
"programs": "${command:cmsis-csolution.getBinaryFiles}",
"cmsisPack": "${command:cmsis-csolution.getDfpName}",
"deviceName": "${command:cmsis-csolution.getDeviceName}",
"processorName": "${command:cmsis-csolution.getProcessorName}",
"workspaceFolder": "${workspaceFolder}/"
},
{
"name": "STLink@pyOCD (launch)",
"type": "gdbtarget",
"request": "launch",
"cwd": "${workspaceFolder}/",
"program": "out/Robot_V2/GD32C103CB/Release/Robot_V2.axf",
"gdb": "arm-none-eabi-gdb",
"auxiliaryGdb": true,
"preLaunchTask": "CMSIS Load",
"initCommands": [
"monitor reset halt",
"tbreak main"
],
"customResetCommands": [
"monitor reset halt",
"maintenance flush register-cache",
"maintenance flush dcache",
"tbreak main",
"continue"
],
"target": {
"server": "pyocd",
"serverParameters": [
"gdbserver",
"--probe",
"stlink:",
"--connect",
"attach",
"--cbuild-run",
"${command:cmsis-csolution.getCbuildRunFile}",
"--quiet",
"--log",
"*.cbuild_run,*server=info"
],
"port": "3333"
},
"cmsis": {
"cbuildRunFile": "${command:cmsis-csolution.getCbuildRunFile}",
"updateConfiguration": "auto"
}
},
{
"name": "STLink@pyOCD (attach)",
"type": "gdbtarget",
"request": "attach",
"cwd": "${workspaceFolder}/",
"program": "out/Robot_V2/GD32C103CB/Release/Robot_V2.axf",
"gdb": "arm-none-eabi-gdb",
"auxiliaryGdb": true,
"initCommands": [
""
],
"customResetCommands": [
"monitor reset halt",
"maintenance flush register-cache",
"maintenance flush dcache",
"tbreak main",
"continue"
],
"target": {
"port": "3333"
},
"cmsis": {
"cbuildRunFile": "${command:cmsis-csolution.getCbuildRunFile}",
"updateConfiguration": "auto"
}
}
]
}
+7
View File
@@ -0,0 +1,7 @@
{
"clangd.arguments": [
"--compile-commands-dir=g:\\Robot_v2\\BOOT\\out\\Robot_V2\\GD32C103CB\\Release"
],
"debug.hideSlowPreLaunchWarning": true,
"debug.showInStatusBar": "never"
}
+112
View File
@@ -0,0 +1,112 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "CMSIS Load+Run",
"problemMatcher": [],
"dependsOn": [
"CMSIS Load",
"CMSIS Run"
],
"dependsOrder": "sequence"
},
{
"label": "CMSIS Erase",
"type": "shell",
"command": "pyocd",
"options": {
"cwd": "${workspaceFolder}/",
"shell": {
"executable": "cmd.exe",
"args": [
"/d",
"/c"
]
}
},
"args": [
"erase",
"--probe",
"stlink:",
"--chip",
"--cbuild-run",
"${command:cmsis-csolution.getCbuildRunFile}"
],
"problemMatcher": []
},
{
"label": "CMSIS Load",
"type": "shell",
"command": "pyocd",
"options": {
"cwd": "${workspaceFolder}/",
"shell": {
"executable": "cmd.exe",
"args": [
"/d",
"/c"
]
}
},
"args": [
"load",
"--probe",
"stlink:",
"--cbuild-run",
"${command:cmsis-csolution.getCbuildRunFile}"
],
"problemMatcher": []
},
{
"label": "CMSIS Run",
"type": "shell",
"command": "pyocd",
"options": {
"cwd": "${workspaceFolder}/",
"shell": {
"executable": "cmd.exe",
"args": [
"/d",
"/c"
]
}
},
"args": [
"gdbserver",
"--probe",
"stlink:",
"--connect",
"attach",
"--persist",
"--reset-run",
"--cbuild-run",
"${command:cmsis-csolution.getCbuildRunFile}",
"--quiet",
"--log",
"*.cbuild_run,*server=info"
],
"problemMatcher": []
},
{
"label": "CMSIS TargetInfo",
"type": "shell",
"command": "pyocd",
"options": {
"cwd": "${workspaceFolder}/",
"shell": {
"executable": "cmd.exe",
"args": [
"/d",
"/c"
]
}
},
"args": [
"list",
"--cbuild-run",
"${command:cmsis-csolution.getCbuildRunFile}"
],
"problemMatcher": []
}
]
}