Files
STM32F4-Base/.opencode/command/build.md
T
2026-08-30 13:30:59 +08:00

699 B

description, agent
description agent
Build the STM32F4-Base Keil MDK project. Use ONLY when the user asks to build, compile, or verify the project. build

Run the Keil MDK-ARM build by executing the build script with the bash tool. Use the absolute path, NOT relative cd:

& "D:\Code\DTU 程序\STM32F4-Base\MDK-ARM\build.bat"

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.