From c5cb58383c1cb4ca77d18a0c52360fb5a16dbf0c Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Tue, 28 Feb 2023 09:17:36 +0800 Subject: [PATCH] [BSP] Add vscode setting. (#6992) --- bsp/qemu-virt64-aarch64/.vscode/launch.json | 41 +++++++++++++++++++++ bsp/qemu-virt64-aarch64/.vscode/smart.json | 34 +++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 bsp/qemu-virt64-aarch64/.vscode/launch.json create mode 100644 bsp/qemu-virt64-aarch64/.vscode/smart.json diff --git a/bsp/qemu-virt64-aarch64/.vscode/launch.json b/bsp/qemu-virt64-aarch64/.vscode/launch.json new file mode 100644 index 0000000000..d3f848693d --- /dev/null +++ b/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" + } + } + ] +} diff --git a/bsp/qemu-virt64-aarch64/.vscode/smart.json b/bsp/qemu-virt64-aarch64/.vscode/smart.json new file mode 100644 index 0000000000..61ef26fad4 --- /dev/null +++ b/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" : "项目名称" + } + } +} \ No newline at end of file -- GitLab