🔨 OpenOCD Debug for VSCode

This commit is contained in:
Scott Lahteine 2022-05-07 23:51:38 -05:00
parent 238ab1dd06
commit 13d1eb7241

View File

@ -12,26 +12,17 @@
"version": "0.2.0",
"configurations": [
{
"name": "Debug STM32 (launch)",
"name": "Debug STM32 (ST-Link)",
"request": "launch",
"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 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",
"device": "stlink",
"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 Sim",