mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-15 16:48:56 +00:00
v1.0.4
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -10,7 +10,6 @@ partition_table.h
|
|||||||
.Kconfig.prj
|
.Kconfig.prj
|
||||||
*.bak
|
*.bak
|
||||||
.log/
|
.log/
|
||||||
.vscode/
|
|
||||||
.cscope/
|
.cscope/
|
||||||
output/
|
output/
|
||||||
/toolchain/
|
/toolchain/
|
||||||
|
|||||||
177
.vscode/launch.json
vendored
Normal file
177
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,177 @@
|
|||||||
|
{
|
||||||
|
// Usage:
|
||||||
|
// 1. Modify the ELF file path
|
||||||
|
// 2. Modify the IP and Port of DebugServer
|
||||||
|
// 3. Modify the breakpoint define
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "D12x/D13x Load",
|
||||||
|
"type": "cppdbg",
|
||||||
|
"request": "launch",
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"program": "${cwd}/output/d13x_demo88-nand_rt-thread_helloworld/images/d13x.elf", // FIXME
|
||||||
|
"args": [],
|
||||||
|
"stopAtEntry": false,
|
||||||
|
"environment": [],
|
||||||
|
"externalConsole": true,
|
||||||
|
"MIMode": "gdb",
|
||||||
|
"miDebuggerPath": "${cwd}/toolchain/bin/riscv64-unknown-elf-gdb.exe",
|
||||||
|
"setupCommands": [
|
||||||
|
{
|
||||||
|
"description": "Enable pretty-printing for gdb",
|
||||||
|
"text": "-enable-pretty-printing",
|
||||||
|
"ignoreFailures": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "set arch riscv:rv32"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "set height 0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "mem 0x30040000 0x3013ffff rw"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "mem 0x10000000 0x19ffffff rw"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "mem 0x40000000 0x41ffffff rw"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "target remote 172.16.x.x:3333" // FIXME
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// MUST use full path
|
||||||
|
"text": "load e:/workspace/luban-lite/output/d13x_demo88-nand_rt-thread_helloworld/images/d13x.elf" // FIXME
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// MUST use full path
|
||||||
|
"text": "file e:/workspace/luban-lite/output/d13x_demo88-nand_rt-thread_helloworld/images/d13x.elf" // FIXME
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// FIXME
|
||||||
|
"text": "b rt_hw_board_init"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "D12x/D13x connect only",
|
||||||
|
"type": "cppdbg",
|
||||||
|
"request": "launch",
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"program": "${cwd}/output/d13x_demo88-nand_rt-thread_helloworld/images/d13x.elf", // FIXME
|
||||||
|
"args": [],
|
||||||
|
"stopAtEntry": false,
|
||||||
|
"environment": [],
|
||||||
|
"externalConsole": true,
|
||||||
|
"MIMode": "gdb",
|
||||||
|
"miDebuggerPath": "${cwd}/toolchain/bin/riscv64-unknown-elf-gdb.exe",
|
||||||
|
"setupCommands": [
|
||||||
|
{
|
||||||
|
"description": "Enable pretty-printing for gdb",
|
||||||
|
"text": "-enable-pretty-printing",
|
||||||
|
"ignoreFailures": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "set arch riscv:rv32"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "set height 0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "mem 0x30040000 0x3013ffff rw"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "mem 0x10000000 0x19ffffff rw"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "mem 0x40000000 0x41ffffff rw"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "target remote 172.16.x.x:3333" // FIXME
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// MUST use full path
|
||||||
|
"text": "file e:/workspace/luban-lite/output/d13x_demo88-nand_rt-thread_helloworld/images/d13x.elf" // FIXME
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// FIXME
|
||||||
|
"text": "b rt_hw_board_init"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "D21x Load",
|
||||||
|
"type": "cppdbg",
|
||||||
|
"request": "launch",
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"program": "${cwd}/output/d21x_demo88-nand_rt-thread_helloworld/images/d21x.elf", // FIXME
|
||||||
|
"args": [],
|
||||||
|
"stopAtEntry": false,
|
||||||
|
"environment": [],
|
||||||
|
"externalConsole": true,
|
||||||
|
"MIMode": "gdb",
|
||||||
|
"miDebuggerPath": "${cwd}/toolchain/bin/riscv64-unknown-elf-gdb.exe",
|
||||||
|
"setupCommands": [
|
||||||
|
{
|
||||||
|
"description": "Enable pretty-printing for gdb",
|
||||||
|
"text": "-enable-pretty-printing",
|
||||||
|
"ignoreFailures": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "set height 0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "target remote 172.16.x.x:3333" // FIXME
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// MUST use full path
|
||||||
|
"text": "load e:/workspace/luban-lite/output/d21x_demo88-nand_rt-thread_helloworld/images/d21x.elf" // FIXME
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// MUST use full path
|
||||||
|
"text": "file e:/workspace/luban-lite/output/d21x_demo88-nand_rt-thread_helloworld/images/d21x.elf" // FIXME
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// FIXME
|
||||||
|
"text": "b rt_hw_board_init"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "D21x connect only",
|
||||||
|
"type": "cppdbg",
|
||||||
|
"request": "launch",
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"program": "${cwd}/output/d21x_demo88-nand_rt-thread_helloworld/images/d21x.elf", // FIXME
|
||||||
|
"args": [],
|
||||||
|
"stopAtEntry": false,
|
||||||
|
"environment": [],
|
||||||
|
"externalConsole": true,
|
||||||
|
"MIMode": "gdb",
|
||||||
|
"miDebuggerPath": "${cwd}/toolchain/bin/riscv64-unknown-elf-gdb.exe",
|
||||||
|
"setupCommands": [
|
||||||
|
{
|
||||||
|
"description": "Enable pretty-printing for gdb",
|
||||||
|
"text": "-enable-pretty-printing",
|
||||||
|
"ignoreFailures": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "set height 0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "target remote 172.16.x.x:3333" // FIXME
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// MUST use full path
|
||||||
|
"text": "file e:/workspace/luban-lite/output/d21x_demo88-nand_rt-thread_helloworld/images/d21x.elf" // FIXME
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// FIXME
|
||||||
|
"text": "b rt_hw_board_init"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
21
.vscode/settings.json
vendored
Normal file
21
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"terminal.integrated.profiles.windows": {
|
||||||
|
"PowerShell": {
|
||||||
|
"source": "PowerShell",
|
||||||
|
"icon": "terminal-powershell",
|
||||||
|
"args": ["${workspaceFolder}/win_cmd.bat"],
|
||||||
|
},
|
||||||
|
"Command Prompt": {
|
||||||
|
"path": [
|
||||||
|
"${env:windir}\\Sysnative\\cmd.exe",
|
||||||
|
"${env:windir}\\System32\\cmd.exe"
|
||||||
|
],
|
||||||
|
"icon": "terminal-cmd",
|
||||||
|
"args": ["/K ${workspaceFolder}/win_cmd.bat"],
|
||||||
|
},
|
||||||
|
"Git Bash": {
|
||||||
|
"source": "Git Bash",
|
||||||
|
"args": ["-c \"source ${workspaceFolder}/tools/onestep.sh\""],
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
89
.vscode/tasks.json
vendored
Normal file
89
.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
{
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "Luban-Lite make",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "scons",
|
||||||
|
"group": "build",
|
||||||
|
"presentation": {
|
||||||
|
"echo": true,
|
||||||
|
"reveal": "always",
|
||||||
|
"focus": true,
|
||||||
|
"panel": "shared",
|
||||||
|
"showReuseMessage": true,
|
||||||
|
"clear": false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Luban-Lite menuconfig",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "menuconfig",
|
||||||
|
"group": "build",
|
||||||
|
"presentation": {
|
||||||
|
"echo": true,
|
||||||
|
"reveal": "always",
|
||||||
|
"focus": true,
|
||||||
|
"panel": "shared",
|
||||||
|
"showReuseMessage": true,
|
||||||
|
"clear": false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Luban-Lite clean",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "scons --clean",
|
||||||
|
"group": "build",
|
||||||
|
"presentation": {
|
||||||
|
"echo": true,
|
||||||
|
"reveal": "always",
|
||||||
|
"focus": true,
|
||||||
|
"panel": "shared",
|
||||||
|
"showReuseMessage": true,
|
||||||
|
"clear": false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Luban-Lite list",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "scons --list-def",
|
||||||
|
"group": "build",
|
||||||
|
"presentation": {
|
||||||
|
"echo": true,
|
||||||
|
"reveal": "always",
|
||||||
|
"focus": true,
|
||||||
|
"panel": "shared",
|
||||||
|
"showReuseMessage": true,
|
||||||
|
"clear": false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Luban-Lite info",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "scons --info",
|
||||||
|
"group": "build",
|
||||||
|
"presentation": {
|
||||||
|
"echo": true,
|
||||||
|
"reveal": "always",
|
||||||
|
"focus": true,
|
||||||
|
"panel": "shared",
|
||||||
|
"showReuseMessage": true,
|
||||||
|
"clear": false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Luban-Lite aicupg",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "scons --aicupg",
|
||||||
|
"group": "build",
|
||||||
|
"presentation": {
|
||||||
|
"echo": true,
|
||||||
|
"reveal": "always",
|
||||||
|
"focus": true,
|
||||||
|
"panel": "shared",
|
||||||
|
"showReuseMessage": true,
|
||||||
|
"clear": false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user