Browse Source

🔨 OpenOCD Debug for VSCode

FB4S_WIFI
Scott Lahteine 2 years ago
parent
commit
13d1eb7241
  1. 19
      buildroot/share/PlatformIO/debugging/launch.json

19
buildroot/share/PlatformIO/debugging/launch.json

@ -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",

Loading…
Cancel
Save