Skip to content

Commit c4a6fe8

Browse files
committed
Added debugger config
1 parent 1349f94 commit c4a6fe8

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

Diff for: .vscode/launch.json

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"cwd": "${workspaceRoot}",
6+
"executable": "./.pioenvs/STM32F4_ARMED/firmware.elf",
7+
"name": "Debug Microcontroller",
8+
"request": "launch",
9+
"type": "cortex-debug",
10+
"device": "STM32F407VET",
11+
"servertype": "openocd",
12+
"svdFile": "d:/temp/STM32F40x.svd",
13+
"configFiles": [
14+
"interface/stlink-v2.cfg",
15+
"target/stm32f4x.cfg"
16+
]
17+
},
18+
{
19+
"cwd": "${workspaceRoot}",
20+
"executable": "../build/Marlin.ino.elf",
21+
"name": "Debug Microcontroller (Arduino)",
22+
"request": "launch",
23+
"type": "cortex-debug",
24+
"device": "STM32F407VET",
25+
"servertype": "openocd",
26+
"svdFile": "d:/temp/STM32F40x.svd",
27+
"configFiles": [
28+
"interface/stlink-v2.cfg",
29+
"target/stm32f4x.cfg"
30+
]
31+
},
32+
{
33+
"type": "gdb",
34+
"request": "launch",
35+
"cwd": "${workspaceRoot}",
36+
"name": "PlatformIO Debugger",
37+
"target": "c:/Users/Karl/Github/Marlin/.pioenvs/STM32F4_ARMED/firmware.elf",
38+
"gdbpath": "C:/Users/Karl/.platformio/penv/Scripts/piodebuggdb",
39+
"autorun": [ "source .pioinit" ],
40+
"preLaunchTask": "PlatformIO: Pre-Debug",
41+
"internalConsoleOptions": "openOnSessionStart"
42+
}
43+
]
44+
}

0 commit comments

Comments
 (0)