-
Notifications
You must be signed in to change notification settings - Fork 8
/
launch.json
105 lines (105 loc) · 3.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
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
{
/*
* Requires the Rust Language Server (RLS) and Cortex-Debug extensions
* https://marketplace.visualstudio.com/items?itemName=rust-lang.rust
* https://marketplace.visualstudio.com/items?itemName=marus25.cortex-debug
*/
"version": "0.2.0",
"configurations": [
// I was never able to get these ST-Link commands to work.
// I was only ever able to get openocd to work, which uses ST-Link. Idk.
//{
// "type": "cortex-debug",
// "request": "launch",
// "name": "Debug (st-link)",
// "cwd": "${workspaceRoot}",
// "servertype": "stutil",
// "executable": "./target/thumbv7em-none-eabihf/release/eps",
// "preLaunchTask": "Cargo Build (release)",
// "runToMain": true,
// "device": "STM32L496ZGT6"
//},
//{
// "type": "cortex-debug",
// "request": "launch",
// "name": "Debug (QEMU)",
// "servertype": "qemu",
// "cwd": "${workspaceRoot}",
// "preLaunchTask": "Cargo Build (debug)",
// "runToMain": true,
// "executable": "./target/thumbv7m-none-eabi/debug/eps",
// /* Run `cargo build --example hello` and uncomment this line to run semi-hosting example */
// //"executable": "./target/thumbv7m-none-eabi/debug/examples/hello",
// "cpu": "cortex-m3",
// "machine": "lm3s6965evb",
//},
{
/* Configuration for the STM32L496 */
"type": "cortex-debug",
"request": "launch",
"name": "Debug Release (OpenOCD)",
"servertype": "openocd",
"cwd": "${workspaceRoot}",
"preLaunchTask": "Cargo Build (release)",
"runToMain": true,
"executable": "./target/thumbv7em-none-eabihf/release/eps",
"device": "STM32L496ZGT6",
"searchDir": [
"${workspaceRoot}/../openocd_cfg/"
],
"configFiles": [
"${workspaceRoot}/openocd.cfg",
//"interface/stlink-v2-1.cfg",
//"target/stm32l4x.cfg"
],
"svdFile": "${workspaceRoot}/../svd/STM32L4x6.svd",
"swoConfig": {
"enabled": false,
"cpuFrequency": 8000000,
"swoFrequency": 2000000,
"source": "probe",
"decoders": [
{
"type": "console",
"label": "ITM",
"port": 0
}
]
}
},
{
/* Configuration for the STM32L496 */
"type": "cortex-debug",
"request": "launch",
"name": "Debug Debug (OpenOCD)",
"servertype": "openocd",
"cwd": "${workspaceRoot}",
"preLaunchTask": "Cargo Build (debug)",
"runToMain": true,
"executable": "./target/thumbv7em-none-eabihf/debug/eps",
"device": "STM32L496ZGT6",
"searchDir": [
"${workspaceRoot}/../openocd_cfg/"
],
"configFiles": [
"${workspaceRoot}/openocd.cfg",
//"interface/stlink-v2-1.cfg",
//"target/stm32l4x.cfg"
],
"svdFile": "${workspaceRoot}/../svd/STM32L496.svd",
"swoConfig": {
"enabled": false,
"cpuFrequency": 8000000,
"swoFrequency": 2000000,
"source": "probe",
"decoders": [
{
"type": "console",
"label": "ITM",
"port": 0
}
]
}
}
]
}