36 lines
1.6 KiB
JSON
36 lines
1.6 KiB
JSON
{
|
||
"version": "0.2.0",
|
||
"configurations": [
|
||
{
|
||
"name": "Debug-dap",
|
||
"cwd": "${workspaceRoot}",
|
||
"executable": "${workspaceRoot}\\build\\basic_framework.elf",
|
||
"request": "launch",
|
||
"type": "cortex-debug",
|
||
"device":"STM32F407IG", //使用J-link GDB Server时必须;其他GBD Server时可选(有可能帮助自动选择SVD文件)。支持的设备见 https://www.segger.com/downloads/supported-devices.php
|
||
"svdFile": ".\\STM32F407.svd", //svd文件,有这个文件才能查看寄存器的值,每个单片机都不同。可以在以下地址找到 https://github.com/posborne/cmsis-svd
|
||
"servertype": "openocd", //使用的GDB Server
|
||
"configFiles":[
|
||
".\\openocd.cfg",
|
||
],
|
||
// path to your gcc-arm-none-eabi/bin
|
||
"armToolchainPath": "D:\\gcc-arm-none-eabi\\bin",
|
||
// path to your gcc-arm-none-eabi/arm-none-eabi-gdb.exe
|
||
"gdbPath": "D:\\gcc-arm-none-eabi\\bin\\arm-none-eabi-gdb.exe"
|
||
},
|
||
{
|
||
"name": "Debug-jlink",
|
||
"cwd": "${workspaceFolder}",
|
||
"executable": "${workspaceRoot}\\build\\basic_framework.elf",
|
||
"request": "launch",
|
||
"type": "cortex-debug",
|
||
"device": "STM32F407IG",
|
||
"runToEntryPoint": "main",
|
||
"showDevDebugOutput": "none",
|
||
"servertype": "jlink",
|
||
"interface": "swd",
|
||
"armToolchainPath": "D:\\gcc-arm-none-eabi\\bin",
|
||
"gdbPath": "D:\\gcc-arm-none-eabi\\bin\\arm-none-eabi-gdb.exe"
|
||
}
|
||
]
|
||
} |