调试环境搭建
This commit is contained in:
14
.vscode/launch.json
vendored
14
.vscode/launch.json
vendored
@ -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",
|
||||
|
||||
Reference in New Issue
Block a user