🔨 OpenOCD Debug for VSCode
This commit is contained in:
parent
238ab1dd06
commit
13d1eb7241
|
@ -12,26 +12,17 @@
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "Debug STM32 (launch)",
|
"name": "Debug STM32 (ST-Link)",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"type": "cortex-debug",
|
"type": "cortex-debug",
|
||||||
"servertype": "openocd",
|
"servertype": "openocd",
|
||||||
"cwd": "${workspaceRoot}",
|
"cwd": "${workspaceRoot}",
|
||||||
"showDevDebugOutput": false,
|
"showDevDebugOutput": false,
|
||||||
"configFiles": [ "interface/stlink.cfg", "target/stm32f4x.cfg" ],
|
"configFiles": [ "interface/stlink.cfg", "target/stm32f4x.cfg" ],
|
||||||
"device": "STM32F407",
|
"device": "stlink",
|
||||||
"executable": ".pio/build/BIGTREE_SKR_2_USB_debug/firmware.elf",
|
"executable": "${workspaceRoot}/.pio/build/BIGTREE_SKR_2_USB_debug/firmware.elf",
|
||||||
},
|
"openOCDLaunchCommands": [ "init", "reset init" ],
|
||||||
{
|
"svdFile": "${env:HOME}/.platformio/platforms/ststm32@12.1.1/misc/svd/STM32F40x.svd",
|
||||||
"name": "Debug STM32 (attach)",
|
|
||||||
"request": "attach",
|
|
||||||
"type": "cortex-debug",
|
|
||||||
"servertype": "openocd",
|
|
||||||
"cwd": "${workspaceRoot}",
|
|
||||||
"showDevDebugOutput": false,
|
|
||||||
"configFiles": [ "interface/stlink.cfg", "target/stm32f4x.cfg" ],
|
|
||||||
"device": "STM32F407",
|
|
||||||
"executable": ".pio/build/BIGTREE_SKR_2_USB_debug/firmware.elf",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Debug Sim",
|
"name": "Debug Sim",
|
||||||
|
|
Loading…
Reference in a new issue