Repository navigation
Closed
Labels
area: ciGitHub Actions, fbuild, toolchainsarea: coreLED drivers, color math, animationsplatform: stm32STM32 familystatus: triageNeeds initial assessmenttype: featureNew capability or enhancement
Description
Context
User-facing report: #2206.
Arduino UNO Q is a hybrid board with a Qualcomm QRB2210 Linux side and an STM32U585 MCU side. Arduino sketches run on the STM32U585 side through ArduinoCore-zephyr / Zephyr, and the reporter in #2206 is hitting FastLED's platform-dispatch guard:
#error "This platform isn't recognized by FastLED... yet. See comments in FastLED/led_sysdefs.h for options."
This looks like a missing FastLED board/platform bring-up rather than a dead end. Current FastLED already has STM32U5 family detection and STM32U5 capability metadata, but the top-level platform routing does not yet send STM32U5 / UNO Q / Zephyr builds into a supported sysdefs path.
Relevant external identifiers:
- Arduino FQBN:
arduino:zephyr:unoq - Zephyr target:
arduino_uno_q/arduino_uno_q/stm32u585xx - Arduino package metadata includes
unoq.build.zephyr_target=arduino_uno_q,unoq.build.variant=arduino_uno_q_stm32u585xx,unoq.build.board=UNO_Q, andunoq.upload.target=stm32u585zitxq. - MCU family: STM32U585 / STM32U5
Related upstream PlatformIO/fbuild context:
- Support Arduino Q (STM32U585 MCU part) platformio/platform-ststm32#869 tracks PlatformIO MCU-side UNO Q / ArduinoCore-zephyr support.
- Support Arduino Q (Qualcomm QRB2210 MPU part) platformio/platform-linux_arm#20 tracks the QRB2210 Linux-side support.
- PlatformIO currently has stock STM32U5-class board support (
disco_b_u585i_iot02a,nucleo_u575zi_q), but those are not UNO Q board definitions. - fbuild currently rejects likely UNO Q board IDs and also rejects the stock STM32U585 Discovery board as an unsupported STM32 MCU family.
Current FastLED Gaps
src/led_sysdefs.handsrc/platforms.hroute only older STM32 macro families into the STM32 path, so STM32U5 currently falls through to the unsupported-platform branch.- STM32 core detection currently recognizes STM32duino, libmaple, and Particle. ArduinoCore-zephyr may need a new core-detection branch or a conservative generic Arduino/Zephyr path if it does not expose STM32duino-compatible HAL/pinmap APIs.
- ARM FastPin dispatch also routes only older STM32 macro families to STM32 FastPin support. UNO Q needs STM32U5 FastPin support with the correct U5 GPIO register model and board pin mapping.
- Existing STM32 clockless output looks like a plausible starting point, but it depends on FastPin and interrupt behavior that must be validated under Zephyr.
- STM32U5 GPDMA / accelerated parallel SPI should be treated as out of scope for the first bring-up; compile-correct clockless output and basic SPI/software SPI are the first target.
Proposal
Add FastLED-side Arduino UNO Q support as a board/platform bring-up:
- Route STM32U5 detection through the STM32 sysdefs path where appropriate.
- Add UNO Q / ArduinoCore-zephyr detection for the known symbols and metadata, including
UNO_Q,arduino_uno_q, and anyARDUINO_ARCH_ZEPHYR-style macro exposed by the core. - Add STM32U5 / UNO Q FastPin coverage with a correct U5 GPIO register model and board pin map.
- Validate whether existing STM32 clockless/SPI paths are usable on STM32U585, or add a conservative fallback if Zephyr requires one.
- Add fbuild/PlatformIO board metadata once upstream tooling has a usable board definition or local fbuild support can model it.
- Document the support status clearly if hardware validation is still pending.
Acceptance Criteria
- A minimal UNO Q sketch including
FastLED.hno longer fails atsrc/led_sysdefs.hplatform detection. - STM32U5 / STM32U585 builds route to the intended FastLED STM32 sysdefs/platform code instead of the unknown-platform branch.
- A WS2812-style clockless strip compile target works for UNO Q / STM32U585.
- At least one SPI chipset compiles through a safe software/default SPI path.
- Existing STM32 F1/F4 and Arduino GIGA/H7 compile paths do not regress.
- A board entry or documented build recipe exists for fbuild/PlatformIO once the required board/toolchain path is available.
- Support for Arduino Q #2206 is updated with the support path and this tracking issue.
Non-goals
- STM32U5 GPDMA support.
- Parallel SPI / accelerated channel-driver support on STM32U5.
- Claiming hardware timing support before testing on an actual UNO Q.
Open Questions
- Which exact preprocessor macros does ArduinoCore-zephyr define for UNO Q during an Arduino sketch build? Package metadata confirms
unoq.build.board=UNO_Q, but the compile-time emitted macro set still needs to be captured. - Whether FastLED can use the existing STM32duino sysdefs for ArduinoCore-zephyr, or whether Zephyr needs a separate sysdefs/core-detection branch.
- Whether raw Cortex-M interrupt masking used by the current STM32 path is acceptable under Zephyr scheduling/security constraints.
- Whether the first supported target should be compile-only until hardware timing is validated on an actual UNO Q.
Related Issues
- User report: Support for Arduino Q #2206
- Upstream PlatformIO MCU-side support: Support Arduino Q (STM32U585 MCU part) platformio/platform-ststm32#869
- Upstream PlatformIO Linux-side support: Support Arduino Q (Qualcomm QRB2210 MPU part) platformio/platform-linux_arm#20
Metadata
Metadata
Assignees
Labels
area: ciGitHub Actions, fbuild, toolchainsarea: coreLED drivers, color math, animationsplatform: stm32STM32 familystatus: triageNeeds initial assessmenttype: featureNew capability or enhancement
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Jun 1, 2026
Implementation status update, cross-referencing #2206:
ARDUINO_UNO_Qrouting throughsrc/led_sysdefs.h,src/platforms.h, and the STM32 FastPin path.ARDUINO_ARCH_ZEPHYR+ UNO Q / STM32U585 config macros), plus Zephyr sysdefs and interrupt shims.ci/boards/arduino_uno_q.json, theci/boards.pyentry,.github/workflows/build_arduino_uno_q.yml, and the README badge.arduino_uno_qand taughtfbuild-configto honorbuild.board, so UNO Q resolves toARDUINO_UNO_Qinstead ofARDUINO_ARDUINO_UNO_Q.Compile/test proof from the local working tree:
uv run python ci\ci-compile.py arduino_uno_q --examples Blink --no-interactive --no-parallel --local --backend platformio --log-failures .build\uno_q_failures --max-failures 1passes and builds Blink for the STM32U585 proxy target.cargo test -p fbuild-config test_from_board_id_arduino_uno_q -- --nocapturepasses in the external fbuild checkout.uv run python -m pytest ci\lint_cpp\test_native_platform_defines_checker.py ci\lint_cpp\test_is_header_include_checker.py -qpasses.git diff --checkpasses for FastLED and the external fbuild checkout.Native fbuild note: with the patched local
fbuildand localfbuild-daemonfirst inPATH,fbuild.exe buildnow resolvesarduino_uno_qand entersfbuild_build::stm32::orchestrator, selecting the STM32 core, 4 variant sources, SPI, and SoftwareSerial. It still exits 1 without a streamed diagnostic, so the remaining fbuild-native follow-up is an STM32 backend diagnostic rather than missing UNO Q board metadata.Next steps:
build.boardloader change.zackees commentedon Jun 1, 2026
Filed the native fbuild follow-ups:
arduino_uno_q/stm32u585zit6q.With the local #363 patch applied and the rebuilt
extern-repos/fbuild/target/debug/fbuild.exefirst inPATH, a direct nativefbuild build --no-timestamp .build/pio/arduino_uno_qnow succeeds and producesfirmware.elfplusfirmware.hex. The remaining wrapper failure I reproduced came from FastLED's--backend fbuildpath invoking the installed.venv\Scripts\fbuild.exe, which does not yet include the new board DB / STM32U5 support.