Repository navigation
Description
Context
FastLED is adding Arduino UNO Q support. The FastLED-side PlatformIO proxy compile for arduino_uno_q now passes, and the fbuild board database can resolve arduino_uno_q to the STM32U585 proxy metadata.
Native fbuild gets past board resolution and enters the STM32 orchestrator, but then fails before compilation because the STM32 backend has no STM32U5 MCU config.
Reproduction from a generated FastLED UNO Q project:
set FBUILD_DAEMON_PORT=8895
set PATH=C:\Users\niteris\dev\fastled3\extern-repos\fbuild\target\debug;%PATH%
fbuild.exe build --no-timestamp C:\Users\niteris\dev\fastled3\.build\pio\arduino_uno_qObserved diagnostic:
build error: config error: unsupported STM32 MCU: 'stm32u585zit6q' (supported prefixes: stm32f103, stm32f4, stm32h7)
The failure originates in crates/fbuild-build/src/stm32/mcu_config.rs, where get_stm32_config_for_mcu() only dispatches to embedded configs for:
stm32f103*stm32f4*stm32h7*
The UNO Q board metadata uses:
build.mcu = stm32u585zit6qbuild.variant = STM32U5xx/U575Z(G-I)TxQ_U585ZITxQbuild.board = UNO_Qbuild.extra_flags = -DSTM32U5 -DSTM32U5xx -DSTM32U585xx -DARDUINO_NUCLEO_U575ZI_Q -DCUSTOM_PERIPHERAL_PINS
PlatformIO's passing STM32duino proxy compile uses Cortex-M33 hard-float flags for this target:
-mcpu=cortex-m33 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard
Proposal
Add native STM32U5/U585 support to the fbuild STM32 backend.
Suggested implementation path:
- Add
crates/fbuild-build/src/stm32/configs/stm32u5.json. - Include that JSON in
crates/fbuild-build/src/stm32/mcu_config.rs. - Route
stm32u5*and/orstm32u585*MCU names to the STM32U5 config. - Add tests for
stm32u585zit6qand case-insensitive matching. - Update the unsupported-MCU diagnostic to include
stm32u5/stm32u585once supported.
Acceptance criteria
cargo test -p fbuild-build stm32u5or equivalent focused tests pass.get_stm32_config_for_mcu("stm32u585zit6q")returns a Cortex-M33 hard-float config.- Native
fbuild buildfor the generated FastLEDarduino_uno_qproject gets past MCU config selection and begins actual compilation. - If later compile/link failures remain, they are surfaced with non-empty diagnostics rather than an empty exit 1.
Related issues
- feat: add Arduino UNO Q (STM32U585 / Zephyr) support FastLED#2674 tracks the FastLED-side Arduino UNO Q support path and README build badge.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTriage
Activity