调试环境搭建

This commit is contained in:
冯佳
2026-01-23 10:13:38 +08:00
parent b166bee1a9
commit 5dce1bf382
6 changed files with 404 additions and 379 deletions

14
.vscode/launch.json vendored
View File

@ -15,15 +15,17 @@
"interface": "swd",
"serialNumber": "", // Optional: set if multiple J-Links are connected
"runToEntryPoint": "main",
"svdFile": "${config:STM32VSCodeExtension.cubeCLT.path}/STMicroelectronics_CMSIS_SVD/STM32F407.svd",
"armToolchainPath": "${config:STM32VSCodeExtension.cubeCLT.path}/GNU-tools-for-STM32/bin",
"gdbPath": "${config:STM32VSCodeExtension.cubeCLT.path}/GNU-tools-for-STM32/bin/arm-none-eabi-gdb",
"serverpath": "C:/Program Files/SEGGER/JLink_V836/JLinkGDBServerCL.exe", // Adjust path if needed
"armToolchainPath": "D:/ARM_GCC/bin",
"gdbPath": "D:/ARM_GCC/bin/arm-none-eabi-gdb.exe",
"serverpath": "D:/SEGGER/JLink_V898/JLinkGDBServerCL.exe",
"serverArgs": [
"-device", "STM32F407VE",
"-if", "SWD",
"-speed", "4000"
]
"-speed", "4000",
"-nogui",
"-autoconnect", "1"
],
"preLaunchTask": "CMake: clean rebuild"
},
{
"name": "Build & Debug Microcontroller - ST-Link",