--- 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 by executing the build script with the bash tool. The repo root is the working directory; use the repo-relative path (the old absolute path `D:\Code\DTU 程序\...` is stale): ```powershell & "MDK-ARM\build.bat" ``` Then read the tail of `MDK-ARM/build_log.txt` and report the result. Exit code interpretation (per AGENTS.md / `MDK-ARM/build.bat`): - 0 = success (0 errors, 0 warnings) — PASS - 1 = build failure (compile errors, or warnings-only, or no build log produced) — FAIL, must fix - 2 = environment error (`DTU_KEIL_UV4` unset or invalid path) — fix the tool path, then rerun If the build fails, read `MDK-ARM/build_log.txt`, fix the reported errors/warnings, and rerun `@build` until it returns 0.