Browse Source

🔨 OpenOCD Debug for VSCode

FB4S_WIFI
Scott Lahteine 3 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", "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…
Cancel
Save