构建初始UI界面

This commit is contained in:
2026-08-30 13:30:59 +08:00
parent e2f199c6bf
commit 67370888a1
11 changed files with 1634 additions and 171 deletions
+12 -7
View File
@@ -1,14 +1,19 @@
---
description: Build the STM32F4-Base Keil MDK project. Use ONLY when the user asks to build, compile, or verify the project.
agent: build
---
Run the Keil MDK-ARM build from the project root:
Run the Keil MDK-ARM build by executing the build script with the bash tool. Use the absolute path, NOT relative cd:
```
cmd /c "cd /d "D:\Code\DTU 程序\STM32F4-Base\MDK-ARM" && build.bat"
```powershell
& "D:\Code\DTU 程序\STM32F4-Base\MDK-ARM\build.bat"
```
Check the last 10 lines of `MDK-ARM/build_log.txt` for errors/warnings.
Return code 0 = success (0 errors, 0 warnings).
Return code 1 = warnings-only (also failure per project rules).
Return code 2+ = compile errors.
Then read the tail of `MDK-ARM/build_log.txt` and report the result.
Exit code interpretation (per AGENTS.md):
- 0 = success (0 errors, 0 warnings) — PASS
- 1 = warnings only — FAIL, must fix
- 2+ = compile errors — FAIL, must fix
If the build fails, read `MDK-ARM/build_log.txt`, fix the reported errors/warnings, and rerun `@build` until it returns 0.