-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlaunch.json
More file actions
109 lines (109 loc) · 4.46 KB
/
launch.json
File metadata and controls
109 lines (109 loc) · 4.46 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug FSBL @ QEMU",
"type": "lldb-vscode",
"request": "attach",
"stopOnEntry": true,
"program": "${workspaceFolder}/zig-out/bin/qsmp-fsbl-qemu",
"initCommands": [
"shell pkill -f qemu-system-arm || true",
"shell daemon -- qemu-system-arm -machine virt,gic-version=max,secure=true,virtualization=true -smp 2,sockets=1,cores=2,threads=1 -cpu cortex-a7 -m 256K -nographic -s -S",
],
"attachCommands": [
"file --arch armv7-none-none ${workspaceFolder}/zig-out/bin/qsmp-fsbl-qemu",
"gdb-remote 1234",
"target modules load --load --set-pc-to-entry --slide 0",
],
"terminateCommands": [
"shell pkill -f qemu-system-arm || true",
]
},
{
"name": "Debug STM32MP1 FSBL @ CPU0",
"type": "lldb-vscode",
"request": "attach",
"stopOnEntry": true,
"program": "${workspaceFolder}/zig-out/bin/qsmp-fsbl",
"initCommands": [
"settings set target.max-children-depth 8",
"settings set -- target.max-children-count -1",
"shell daemon -- openocd -f interface/ftdi/dp_busblaster.cfg -f target/stm32mp15x.cfg -f ${workspaceFolder}/src/stm32mp1/openocd-init-cpu0.cfg",
"shell sh -c \"until nc -z localhost 3333 2\\>/dev/null\\; do sleep 0.1\\; done\""
],
"attachCommands": [
"file --arch armv7-none-none ${workspaceFolder}/zig-out/bin/qsmp-fsbl",
"gdb-remote 3333",
"type format add --format hex uint64_t",
"type format add --format hex uint32_t",
"type format add --format hex \"unsigned long long\"",
"target modules load --load --set-pc-to-entry --slide 0",
],
"terminateCommands": [
"shell sh -c \"pkill -9 -f openocd || true\"",
"shell sh -c \"pkill -9 -f lldb-dap || true\"",
]
},
{
"name": "Debug STM32MP1 FSBL @ CPU1",
"type": "lldb-vscode",
"request": "attach",
"stopOnEntry": true,
"program": "${workspaceFolder}/zig-out/bin/qsmp-fsbl",
"initCommands": [
"shell pkill -f openocd || true",
"shell daemon -- openocd -f interface/ftdi/dp_busblaster.cfg -f target/stm32mp15x.cfg -f ${workspaceFolder}/src/stm32mp1/openocd-init-cpu1.cfg",
"shell sh -c \"until nc -z localhost 3333 2\\>/dev/null\\; do sleep 0.1\\; done\""
],
"attachCommands": [
"file --arch armv7-none-none ${workspaceFolder}/zig-out/bin/qsmp-fsbl",
"gdb-remote 3333",
"target modules load --load --set-pc-to-entry --slide 0",
],
"terminateCommands": [
"shell pkill -f openocd || true",
]
},
{
"name": "Debug STM32MP1 (DDR)",
"type": "lldb-vscode",
"request": "attach",
"stopOnEntry": true,
"program": "${workspaceFolder}/zig-out/bin/ddr-part",
"initCommands": [
"shell pkill -f openocd || true",
"shell daemon -- openocd -f interface/ftdi/dp_busblaster.cfg -f target/stm32mp15x.cfg -f ${workspaceFolder}/src/stm32mp1/openocd-init.cfg",
"shell sh -c \"until nc -z localhost 3333 2\\>/dev/null\\; do sleep 0.1\\; done\""
],
"attachCommands": [
"file --arch armv7-none-none ${workspaceFolder}/zig-out/bin/ddr-part",
"gdb-remote 3333",
"target modules load --load --set-pc-to-entry --slide 0",
],
"terminateCommands": [
"shell pkill -f openocd || true",
]
},
{
"name": "Debug i.MX8M Nano",
"type": "lldb-vscode",
"request": "attach",
"stopOnEntry": true,
"program": "${workspaceFolder}/zig-out/bin/qs8m-fsbl",
"initCommands": [
"shell pkill -f openocd || true",
"shell daemon -- openocd -f interface/ftdi/dp_busblaster.cfg -f target/imx8m.cfg -f ${workspaceFolder}/src/imx8m/openocd-init.cfg",
"shell sh -c \"until nc -z localhost 3333 2\\>/dev/null\\; do sleep 0.1\\; done\""
],
"attachCommands": [
"file --arch aarch64 ${workspaceFolder}/zig-out/bin/qs8m-fsbl",
"gdb-remote 3333",
"target modules load --load --set-pc-to-entry --slide 0",
],
"terminateCommands": [
"shell pkill -f openocd || true",
]
}
]
}