stm32_build
Compiles STM32 CubeIDE firmware in headless mode, automatically detecting added or deleted source files so no Makefile updates are needed, and returns compiler errors, warnings, and ELF path.
Instructions
Build STM32 firmware using CubeIDE headless builder.
Compiles the project at project_path using the specified build configuration. CubeIDE headless mode automatically detects new/deleted source files - no Makefile maintenance needed.
Args: project_path: Absolute path to the CubeIDE project root (must contain .project and .cproject). configuration: Build configuration - "Debug" or "Release". clean: If true, clean before building (slower but ensures full rebuild).
Returns: Build result with filtered compiler output, errors/warnings, ELF size, and the path to the built .elf file on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clean | No | ||
| project_path | Yes | ||
| configuration | No | Debug |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |