Skip to content

feat: add Arduino UNO Q (STM32U585 / Zephyr) support #2674

Closed

Description

@zackees

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, and unoq.upload.target=stm32u585zitxq.
  • MCU family: STM32U585 / STM32U5

Related upstream PlatformIO/fbuild context:

Current FastLED Gaps

  • src/led_sysdefs.h and src/platforms.h route 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:

  1. Route STM32U5 detection through the STM32 sysdefs path where appropriate.
  2. Add UNO Q / ArduinoCore-zephyr detection for the known symbols and metadata, including UNO_Q, arduino_uno_q, and any ARDUINO_ARCH_ZEPHYR-style macro exposed by the core.
  3. Add STM32U5 / UNO Q FastPin coverage with a correct U5 GPIO register model and board pin map.
  4. Validate whether existing STM32 clockless/SPI paths are usable on STM32U585, or add a conservative fallback if Zephyr requires one.
  5. Add fbuild/PlatformIO board metadata once upstream tooling has a usable board definition or local fbuild support can model it.
  6. Document the support status clearly if hardware validation is still pending.

Acceptance Criteria

  • A minimal UNO Q sketch including FastLED.h no longer fails at src/led_sysdefs.h platform 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

Activity

  1. added
    status: triage
    type: feature
    platform: stm32
    area: core
    area: ci
    on Jun 1, 2026
  2. zackees commented on Jun 1, 2026

    @zackees
    MemberAuthor

    Implementation status update, cross-referencing #2206:

    • Added the FastLED support path for STM32U5 / STM32U585 / ARDUINO_UNO_Q routing through src/led_sysdefs.h, src/platforms.h, and the STM32 FastPin path.
    • Added ArduinoCore-zephyr UNO Q detection (ARDUINO_ARCH_ZEPHYR + UNO Q / STM32U585 config macros), plus Zephyr sysdefs and interrupt shims.
    • Added a STM32U5 FastPin family and an UNO Q pin map based on the ArduinoCore-zephyr UNO Q variant.
    • Added ci/boards/arduino_uno_q.json, the ci/boards.py entry, .github/workflows/build_arduino_uno_q.yml, and the README badge.
    • Added an external fbuild board database entry for arduino_uno_q and taught fbuild-config to honor build.board, so UNO Q resolves to ARDUINO_UNO_Q instead of ARDUINO_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 1 passes and builds Blink for the STM32U585 proxy target.
    • cargo test -p fbuild-config test_from_board_id_arduino_uno_q -- --nocapture passes 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 -q passes.
    • git diff --check passes for FastLED and the external fbuild checkout.

    Native fbuild note: with the patched local fbuild and local fbuild-daemon first in PATH, fbuild.exe build now resolves arduino_uno_q and enters fbuild_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:

    1. Land the FastLED support and README badge.
    2. Land the fbuild board database / build.board loader change.
    3. Follow up on native fbuild STM32 exit diagnostics and real ArduinoCore-zephyr/uploader/hardware validation on UNO Q.
  3. zackees commented on Jun 1, 2026

    @zackees
    MemberAuthor

    Filed the native fbuild follow-ups:

    With the local #363 patch applied and the rebuilt extern-repos/fbuild/target/debug/fbuild.exe first in PATH, a direct native fbuild build --no-timestamp .build/pio/arduino_uno_q now succeeds and produces firmware.elf plus firmware.hex. The remaining wrapper failure I reproduced came from FastLED's --backend fbuild path invoking the installed .venv\Scripts\fbuild.exe, which does not yet include the new board DB / STM32U5 support.

  4. moved this from Triage to Done in FastLED Trackeron Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ciarea: coreplatform: stm32status: triagetype: feature

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions