[BSP] Add vscode setting. (#6992)

This commit is contained in:
Bernard Xiong 2023-02-28 09:17:36 +08:00 committed by GitHub
parent 8015b61fcb
commit c5cb58383c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 75 additions and 0 deletions

View File

@ -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"
}
}
]
}

View File

@ -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" : "项目名称"
}
}
}