-
Notifications
You must be signed in to change notification settings - Fork 0
/
launch.json
55 lines (55 loc) · 1.8 KB
/
launch.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"version": "0.2.0",
"configurations": [
{
"name": "OpenOCD + LLDB",
"type": "cppdbg",
"request": "launch",
"logging": {
"moduleLoad": true,
"trace": true,
"engineLogging": true,
"programOutput": true,
"exceptions": true
},
"filterStderr": true,
"filterStdout": true,
"program": "${workspaceFolder}/zig-out/bin/stm32f411.elf",
"cwd": "${workspaceFolder}",
"externalConsole": false,
"MIMode": "lldb",
"miDebuggerPath": "lldb-mi",
"launchCompleteCommand": "exec-continue",
"debugServerPath": "openocd",
"debugServerArgs": "-f interface/stlink.cfg -f target/stm32f4x.cfg -c \"init ; reset halt\"",
"serverStarted": "Listening on port 3333 for gdb connections",
"serverLaunchTimeout": 300,
"targetArchitecture": "arm",
"setupCommands": [
{ "text": "-enable-pretty-printing", "ignoreFailures": false }
],
"customLaunchSetupCommands": [
{
"text": "file ${workspaceFolder}/zig-out/bin/stm32f411.elf"
},
{ "text": "gdb-remote 3333" },
{ "text": "settings set target.require-hardware-breakpoint true" }
]
},
{
"name": "flash stm32f411.elf",
"type": "cppdbg",
"request": "launch",
"filterStderr": true,
"filterStdout": true,
"program": "${workspaceFolder}/zig-out/bin/stm32f411.elf",
"cwd": "${workspaceFolder}",
"externalConsole": false,
"MIMode": "lldb",
"miDebuggerPath": "lldb-mi",
"launchCompleteCommand": "None",
"debugServerPath": "openocd",
"debugServerArgs": "-f interface/stlink.cfg -f target/stm32f4x.cfg -c \"init ; reset halt ; program ${workspaceFolder}/zig-out/bin/stm32f411.elf verify reset ; exit \""
}
]
}