Skip to content

Commit 978c378

Browse files
committed
add vscode workspace files
1 parent 1a7d26f commit 978c378

File tree

4 files changed

+141
-0
lines changed

4 files changed

+141
-0
lines changed

.vscode/launch.json

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "(gdb) Launch",
9+
"type": "cppdbg",
10+
"request": "launch",
11+
"program": "${workspaceFolder}/build/ec.rw/ec.elf",
12+
"args": [],
13+
"stopAtEntry": false,
14+
"cwd": "${workspaceFolder}",
15+
"environment": [],
16+
"externalConsole": false,
17+
"MIMode": "gdb",
18+
"setupCommands": [
19+
{
20+
"description": "Enable pretty-printing for gdb",
21+
"text": "-enable-pretty-printing",
22+
"ignoreFailures": true
23+
},
24+
{ "text": "-target-select remote localhost:3333", "description": "connect to target", "ignoreFailures": false },
25+
{ "text": "-file-exec-and-symbols ${workspaceFolder}/build/ec.rw/ec.elf", "description": "load file", "ignoreFailures": false},
26+
{ "text": "-interpreter-exec console \"monitor endian little\"", "ignoreFailures": false },
27+
{ "text": "-interpreter-exec console \"monitor reset\"", "ignoreFailures": false },
28+
{ "text": "-interpreter-exec console \"monitor halt\"", "ignoreFailures": false },
29+
{ "text": "-interpreter-exec console \"monitor arm semihosting enable\"", "ignoreFailures": false },
30+
{ "text": "-interpreter-exec console \"set mem inaccessible-by-default off\"", "ignoreFailures": false },
31+
],
32+
"linux": {
33+
"MIMode": "gdb",
34+
"MIDebuggerPath": "arm-zephyr-eabi-gdb",
35+
//"debugServerPath": "${workspaceFolder}/pyenv/bin/pyocd-gdbserver",
36+
//"miDebuggerServerAddress": "localhost:3333",
37+
//"debugServerArgs": "--target stm32g071rbtx --pack /opt/framework/sw/cmsis-pack/Keil.STM32G0xx_DFP.1.2.0.pack",
38+
//"serverStarted": "GDB server started on port 3333"
39+
},
40+
41+
}
42+
]
43+
}

.vscode/settings.json

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{
2+
}

.vscode/tasks.json

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"tasks": [
3+
{
4+
"type": "shell",
5+
"label": "gcc build active file",
6+
"command": "/usr/bin/gcc",
7+
"args": [
8+
"-g",
9+
"${file}",
10+
"-o",
11+
"${fileDirname}/${fileBasenameNoExtension}"
12+
],
13+
"options": {
14+
"cwd": "/usr/bin"
15+
}
16+
},
17+
{
18+
"type": "shell",
19+
"label": "hx20",
20+
"command": "/usr/bin/make",
21+
"args": [
22+
"all",
23+
"BOARD=hx20",
24+
"HX20_ORB=n",
25+
"CROSS_COMPILE=arm-none-eabi-",
26+
"-j"
27+
],
28+
"options": {
29+
"cwd": "${workspaceFolder}"
30+
},
31+
"presentation": {
32+
"echo": true,
33+
"reveal": "always",
34+
"focus": false,
35+
"panel": "shared"
36+
},
37+
"group": {
38+
"kind": "build",
39+
"isDefault": true
40+
},
41+
"problemMatcher": []
42+
},
43+
{
44+
"type": "shell",
45+
"label": "hx20 ORB",
46+
"command": "/usr/bin/make",
47+
"args": [
48+
"all",
49+
"BOARD=hx20",
50+
"HX20_ORB=y",
51+
"CROSS_COMPILE=arm-none-eabi-",
52+
"-j"
53+
],
54+
"options": {
55+
"cwd": "${workspaceFolder}"
56+
},
57+
"presentation": {
58+
"echo": true,
59+
"reveal": "always",
60+
"focus": false,
61+
"panel": "shared"
62+
},
63+
"group": {
64+
"kind": "build",
65+
"isDefault": true
66+
},
67+
"problemMatcher": [
68+
"$gcc"
69+
]
70+
}
71+
],
72+
"version": "2.0.0"
73+
}

ec.code-workspace

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"folders": [
3+
{
4+
"path": "."
5+
},
6+
{
7+
"name": "hx20",
8+
"path": "board/hx20"
9+
},
10+
{
11+
"name": "mchp",
12+
"path": "chip/mchp"
13+
},
14+
{
15+
"name": "common",
16+
"path": "common"
17+
},
18+
{
19+
"name": "include",
20+
"path": "include"
21+
}
22+
]
23+
}

0 commit comments

Comments
 (0)