初版适配和修改

This commit is contained in:
cyy_mac
2026-08-07 19:04:38 +08:00
parent 460e0e9e73
commit f695460797
17 changed files with 1701 additions and 1 deletions

36
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,36 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "DAPLink Debug",
"cwd": "${workspaceFolder}",
"executable": "${workspaceFolder}/build/debug/OriginCar.elf",
"request": "launch",
"type": "cortex-debug",
"device": "STM32F407ZG",
"svdFile": "${workspaceFolder}/../../stm32/stm32f407-gcc-framework/STM32F407.svd",
"servertype": "openocd",
"configFiles": ["${workspaceFolder}/openocd.cfg"],
"preLaunchTask": "Build Debug",
"runToEntryPoint": "main",
"overrideLaunchCommands": [
"monitor reset init",
"load",
"monitor reset init"
],
"liveWatch": { "enabled": true, "samplesPerSecond": 4 }
},
{
"name": "DAPLink Attach",
"cwd": "${workspaceFolder}",
"executable": "${workspaceFolder}/build/debug/OriginCar.elf",
"request": "attach",
"type": "cortex-debug",
"device": "STM32F407ZG",
"svdFile": "${workspaceFolder}/../../stm32/stm32f407-gcc-framework/STM32F407.svd",
"servertype": "openocd",
"configFiles": ["${workspaceFolder}/openocd.cfg"],
"liveWatch": { "enabled": true, "samplesPerSecond": 4 }
}
]
}