chore: sync from actuator_ctrl as new template baseline

- Add SEGGER_RTT support
- Revert .vscode/ to gitignore (project-specific IDE config)
- Updated CMakeLists.txt, board_config.h, main.c from actuator_ctrl
This commit is contained in:
Nova
2026-07-27 22:12:38 +08:00
parent 58c0cf7460
commit 1f35ffd288
14 changed files with 3573 additions and 185 deletions
-9
View File
@@ -1,9 +0,0 @@
{
"version": "0.2.0",
"recommendations": [
"marus25.cortex-debug",
"ms-vscode.cmake-tools",
"twxs.cmake",
"ms-vscode.cpptools"
]
}
-7
View File
@@ -1,7 +0,0 @@
device GD32E230F8
si SWD
speed 4000
loadfile Application.hex
r
go
exit
-27
View File
@@ -1,27 +0,0 @@
{
"version": "0.2.0",
"configurations": [
{
"cwd": "${workspaceFolder}",
"executable": "${workspaceFolder}/Build/Debug/Application/Application.elf",
"name": "Debug with J-Link",
"request": "launch",
"type": "cortex-debug",
"runToEntryPoint": "main",
"showDevDebugOutput": "none",
"servertype": "jlink",
"device": "GD32E230F8",
"interface": "swd",
"svdFile": "${workspaceFolder}/GD32E230.svd",
"liveWatch": {
"enabled": true,
"samplesPerSecond": 1
},
"preLaunchTask": "Build",
"preRestartCommands": [
"load",
"continue"
]
}
]
}
-111
View File
@@ -1,111 +0,0 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build",
"type": "cmake",
"command": "build",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
{
"base": "$gcc",
"fileLocation": [
"relative",
"${command:cmake.buildDirectory}"
]
}
],
"options": {
"environment": {
"CLICOLOR_FORCE": "1"
}
},
"presentation": {
"clear": true
},
"icon": {
"id": "code",
"tooltip": "Build"
}
},
{
"label": "Build and Flash (Jlink)",
"group": {
"kind": "build",
"isDefault": true
},
"dependsOn": [
"Build",
"Flash MCU (Jlink)"
],
"dependsOrder": "sequence",
"icon": {
"id": "insert",
"tooltip": "Build and Flash (Jlink)"
}
},
{
"label": "Flash MCU (Jlink)",
"type": "shell",
"command": "JLink.exe -device GD32E230F8 -if SWD -speed 4000 -autoconnect 1 -CommanderScript '${workspaceFolder}/.vscode/flash.jlink'",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [],
"options": {
"cwd": "${command:cmake.buildDirectory}/Application"
},
"presentation": {
"clear": true
},
"icon": {
"id": "gather",
"tooltip": "Flash MCU (Jlink)"
}
},
{
"label": "Reset MCU (Jlink)",
"type": "shell",
"command": "JLink.exe -device GD32E230F8 -if SWD -speed 4000 -autoconnect 1 -c \"r;exit\"",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [],
"options": {
"cwd": "${workspaceFolder}"
},
"presentation": {
"clear": true
},
"icon": {
"id": "discard",
"tooltip": "Reset MCU (Jlink)"
}
},
{
"label": "Mass Erase MCU (Jlink)",
"type": "shell",
"command": "JLink.exe -device GD32E230F8 -if SWD -speed 4000 -autoconnect 1 -c \"erase;exit\"",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [],
"options": {
"cwd": "${workspaceFolder}"
},
"presentation": {
"clear": true
},
"icon": {
"id": "clear-all",
"tooltip": "Erase MCU (Jlink)"
}
}
]
}