89 lines
3.6 KiB
JSON
89 lines
3.6 KiB
JSON
{
|
|
// 使用 IntelliSense 了解相关属性。
|
|
// 悬停以查看现有属性的描述。
|
|
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
|
|
{
|
|
"name": "openOCD-Debug",
|
|
"cwd": "${workspaceRoot}",
|
|
"executable": "rt-thread.elf",
|
|
"request": "launch",
|
|
"type": "cortex-debug",
|
|
"servertype": "openocd",
|
|
"preLaunchTask": "Build",
|
|
"linux": {
|
|
"armToolchainPath": "/usr/bin/",
|
|
"configFiles": [
|
|
"/usr/share/openocd/scripts/interface/stlink.cfg",
|
|
"/usr/share/openocd/scripts/target/stm32f1x.cfg",
|
|
],
|
|
},
|
|
"windows": {
|
|
"armToolchainPath": "C://Program Files//",
|
|
"configFiles": [
|
|
"C://Program Files//openocd//scripts//interface//stlink.cfg",
|
|
"C://Program Files//openocd//scripts//target//stm32f1x.cfg",
|
|
],
|
|
},
|
|
"osx": {
|
|
"armToolchainPath": "/Users/qp/Applications/gcc-arm-none-eabi-10.3-2021.10/bin/",
|
|
"configFiles":[
|
|
"/opt/homebrew/Cellar/open-ocd/0.12.0/share/openocd/scripts/interface/stlink.cfg",
|
|
"/opt/homebrew/Cellar/open-ocd/0.12.0/share/openocd/scripts/target/stm32f1x.cfg"
|
|
]
|
|
},
|
|
"openOCDLaunchCommands": [
|
|
"reset_config none" // SWD可能未连接RST线, 使用软件复位
|
|
|
|
],
|
|
// "runToMain": false,
|
|
// "svdFile": "libraries/STM32F1xx_HAL/CMSIS/Device/ST/STM32F0xx/STM32F072x.svd", // SVD文件描述寄存器,用于调试时查看CPU及外设寄存器
|
|
"runToEntryPoint": "rtthread_startup",
|
|
"rtos": "auto",
|
|
// "breakAfterReset":true,
|
|
// "postStartSessionCommands":[]
|
|
},
|
|
{
|
|
"name": "pyOCD-Debug",
|
|
"cwd": "${workspaceRoot}",
|
|
"executable": "rt-thread.elf",
|
|
"request": "launch",
|
|
"type": "cortex-debug",
|
|
"servertype": "pyocd",
|
|
"showDevDebugOutput": "both",
|
|
"targetId":"stm32f107vc",
|
|
"interface": "swd",
|
|
// "cmsisPack": "libraries/STM32F1xx_HAL/CMSIS/",
|
|
|
|
"preLaunchTask": "Build",
|
|
"linux": {
|
|
"name": "Launch",
|
|
"type": "cortex-debug",
|
|
"request": "launch",
|
|
"executable": "",
|
|
"armToolchainPath": "/usr/bin/",
|
|
},
|
|
"windows": {
|
|
"name": "Launch",
|
|
"type": "cortex-debug",
|
|
"request": "launch",
|
|
"executable": "",
|
|
"armToolchainPath": "C://Program Files//",
|
|
},
|
|
"osx": {
|
|
"name": "Launch",
|
|
"type": "cortex-debug",
|
|
"request": "launch",
|
|
"executable": "rt-thread.elf",
|
|
"armToolchainPath": "/Users/qp/Applications/gcc-arm-none-eabi-10.3-2021.10/bin/"
|
|
},
|
|
// "runToMain": false,
|
|
// "svdFile": "libraries/STM32F0xx_HAL/CMSIS/Device/ST/STM32F0xx/STM32F072x.svd", // SVD文件描述寄存器,用于调试时查看CPU及外设寄存器
|
|
"runToEntryPoint": "rtthread_startup",
|
|
// "breakAfterReset":true,
|
|
// "postStartSessionCommands":[]
|
|
}
|
|
]
|
|
} |