mirror of
https://github.com/NanjingForestryUniversity/valveboard.git
synced 2025-11-09 14:54:12 +00:00
91 lines
2.7 KiB
JSON
91 lines
2.7 KiB
JSON
|
|
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Debug (OpenOCD)",
|
|
"cwd": "${workspaceRoot}",
|
|
"configFiles": [
|
|
"interface/stlink.cfg",
|
|
"target/stm32f1x.cfg"
|
|
],
|
|
"device": "STM32F103ZE",
|
|
"interface": "swd",
|
|
"preLaunchTask": "debug",
|
|
"request": "launch",
|
|
"runToMain": false,
|
|
"servertype": "openocd",
|
|
"executable": "build/${workspaceRootFolderName}.elf",
|
|
"svdFile": "STM32F103.svd",
|
|
"type": "cortex-debug",
|
|
"preRestartCommands": [
|
|
"file build/${workspaceRootFolderName}.elf",
|
|
"load",
|
|
"monitor reset",
|
|
"enable breakpoint"
|
|
|
|
],
|
|
"postRestartCommands": [
|
|
"b main",
|
|
"c"
|
|
|
|
],
|
|
"preLaunchCommands": [
|
|
"file build/${workspaceRootFolderName}.elf",
|
|
"load",
|
|
"monitor reset",
|
|
"enable breakpoint"
|
|
],
|
|
"postLaunchCommands": [
|
|
"b main",
|
|
"c"
|
|
]
|
|
},
|
|
{
|
|
"name": "Download Debug (OpenOCD)",
|
|
"cwd": "${workspaceRoot}",
|
|
"configFiles": [
|
|
"interface/stlink.cfg",
|
|
"target/stm32f1x.cfg"
|
|
],
|
|
"device": "STM32F103ZE",
|
|
"interface": "swd",
|
|
"preLaunchTask": "debug",
|
|
"request": "launch",
|
|
"runToMain": false,
|
|
"servertype": "openocd",
|
|
"executable": "build/${workspaceRootFolderName}.elf",
|
|
"svdFile": "STM32F103.svd",
|
|
"type": "cortex-debug",
|
|
"preLaunchCommands": [
|
|
"file build/${workspaceRootFolderName}.elf",
|
|
"load",
|
|
"monitor reset",
|
|
"q"
|
|
]
|
|
},
|
|
{
|
|
"name": "Download Release (OpenOCD)",
|
|
"cwd": "${workspaceRoot}",
|
|
"configFiles": [
|
|
"interface/stlink.cfg",
|
|
"target/stm32f1x.cfg"
|
|
],
|
|
"device": "STM32F103ZE",
|
|
"interface": "swd",
|
|
"preLaunchTask": "release",
|
|
"request": "launch",
|
|
"runToMain": false,
|
|
"servertype": "openocd",
|
|
"executable": "build/${workspaceRootFolderName}.elf",
|
|
"svdFile": "STM32F103.svd",
|
|
"type": "cortex-debug",
|
|
"preLaunchCommands": [
|
|
"file build/${workspaceRootFolderName}.elf",
|
|
"load",
|
|
"monitor reset",
|
|
"q"
|
|
]
|
|
}
|
|
]
|
|
} |