Browse Source

[BSP] Add vscode setting. (#6992)

Bernard Xiong 2 years ago
parent
commit
c5cb58383c

+ 41 - 0
bsp/qemu-virt64-aarch64/.vscode/launch.json

@@ -0,0 +1,41 @@
+{
+    "version": "0.2.0",
+    "configurations": [
+        {
+            "name": "Debug RT-Thread",
+            "type": "cppdbg",
+            "request": "launch",
+            "program": "${workspaceRoot}/rtthread.elf",
+            "args": [],
+            "stopAtEntry": true,
+            "cwd": "${workspaceRoot}",
+            "environment": [],
+            "externalConsole": true,
+            "miDebuggerServerAddress": "localhost:1234",
+            "serverLaunchTimeout": 2000,
+            "targetArchitecture": "ARM",
+            "setupCommands": [
+                {
+                    "text": "cd ${workspaceRoot}"
+                },
+                {
+                    "text": "file rtthread.elf"
+                }
+            ],
+            "customLaunchSetupCommands": [],
+            "launchCompleteCommand": "exec-run",
+            "osx": {
+                "MIMode": "gdb",
+                "miDebuggerPath": "arm-none-eabi-gdb"
+            },
+            "linux": {
+                "MIMode": "gdb",
+                "miDebuggerPath": "gdb-multiarch"
+            },
+            "windows": {
+                "MIMode": "gdb",
+                "miDebuggerPath": "arm-none-eabi-gdb.exe"
+            }
+        }
+    ]
+}

+ 34 - 0
bsp/qemu-virt64-aarch64/.vscode/smart.json

@@ -0,0 +1,34 @@
+{
+    "env": {
+        
+    },
+    "statusBarItem": {
+        "build": {
+            "icon": "$(zap)",
+            "enable": true,
+            "commands": [
+                "scons"
+            ],
+            "label": "编译",
+            "tooltip": "编译 RT-Thread 内核"
+        },
+        "clean": {
+            "icon": "$(clear-all)",
+            "enable": true,
+            "commands": [
+                "scons -c"
+            ],
+            "label": "清理",
+            "tooltip": "清理 RT-Thread 内核"
+        },
+        "name" : {
+            "icon" : "$(location)",
+            "enable" : true,
+            "commands" : [
+                ""
+            ],
+            "label" : "QEMU Virt AArch64",
+            "tooltip" : "项目名称"
+        }
+    }
+}