Skip to content

track(platform): validate AVR / megaAVR / ATtiny FastLED build support #389

Closed

Description

@zackees

Context

Several open FastLED issues request or report failures on ATtiny, ATmega4809, AVR DA, Digispark, Nano Every, and related AVR/megaAVR boards. fbuild has AVR, megaAVR, ATtiny, and Nano Every fixtures, but these old reports need explicit reconciliation and cross-reference.

Source FastLED issues

Acceptance criteria

  • Map each source issue to an existing fbuild fixture or add a missing representative fixture where fbuild should support the board/core.
  • Run current FastLED minimal builds for representative classic AVR, ATtinyCore, megaTinyCore, and ATmega4809/Nano Every targets.
  • Separate fbuild board/toolchain gaps from FastLED pin map, assembly, and hardware SPI definition gaps.
  • Add regression coverage for any fbuild-owned gap.
  • Comment back on each source FastLED issue with the fbuild tracker, result, and any remaining FastLED-side blocker.

Activity

  1. added
    enhancement
    priority: p2
    tracking
    on Jun 3, 2026
  2. zackees commented on Jun 3, 2026

    @zackees
    MemberAuthor

    fbuild AVR / megaAVR / ATtiny status (2026-06-03)

    Source-issue → fbuild status mapping

    Source FastLED issue MCU class Board JSON Core registered fbuild fixture Open fbuild gap Open FastLED gap
    FastLED/FastLED#536 attiny88 ATtiny88 / ATTinyCore attiny88.json ✓ tiny ✓ tests/platform/attiny88/ ✓ none invalid-pin static assert at fastpin.h:207 for some pins
    FastLED/FastLED#581 attiny13 ATtiny13 / MicroCore attiny13.json, attiny13a.json ✓ MicroCore ✗ tests/platform/attiny13/ (tracker, added in PR #397) add MicroCore to avr_frameworks.json (MCUdude/MicroCore) __AVR_ATtiny13__ pin map already present
    FastLED/FastLED#716 atmega4809 / nano_every ATmega4809 / megaAVR nano_every.json ✓ arduino_megaavr ✓ tests/platform/nano_every/ ✓ none No hardware SPI pins defined warning — bitbang fallback works
    FastLED/FastLED#960 ATTINY SCALE8 dead code n/a (logic bug) n/a n/a n/a none LIB8_ATTINY / SCALE8_AVRASM macro guard logic
    FastLED/FastLED#973 attiny412 / attiny1614 ATtiny412/1614 / megaTinyCore ATtiny412.json, ATtiny1614.json ✓ megatinycore ✓ tests/platform/ATtiny1604/, tests/platform/ATtiny1616/ ✓ none pin maps present, build should work
    FastLED/FastLED#1090 attiny2313a ColorPalette ATtiny2313A / ATTinyCore attiny2313.json ✓ tiny ✓ covered indirectly by attiny4313 fixture none RAM exhaustion in ColorPalette example on 256 B chips
    FastLED/FastLED#1133 digispark ATtiny85 @ 16.5 MHz / digistump digispark-tiny.json ✓ dtiny ✓ covered by attiny85 fixture none closed upstream
    FastLED/FastLED#1192 attiny88 mul opcode ATtiny88 / avr25 attiny88.json ✓ tiny ✓ covered by attiny88 fixture none LIB8_ATTINY guard around inline asm mul
    FastLED/FastLED#1253 atmega1284 Bobuino ATmega1284P / MiniCore 1284p16m.json, ATmega1284P.json ✓ MiniCore ✓ tests/platform/atmega1284/ (added in PR #397) none FastPin variant selector for alternative pinouts
    FastLED/FastLED#1254 nano_every invalid pin ATmega4809 / megaAVR nano_every.json ✓ arduino_megaavr ✓ tests/platform/nano_every/ ✓ none duplicate of #716, m4809 pin map already exists
    FastLED/FastLED#1307 AVR128DA64 AVR-Dx / DxCore AVR128DA*.json, AVR128DB*.json, AVR64D*.json, AVR32D*.json ✓ dxcore ✗ tests/platform/avr128da64/ (tracker, added in PR #397) add dxcore to avr_frameworks.json (SpenceKonde/DxCore) no AVR-Dx pin map / HW SPI defs in src/platforms/avr/
    FastLED/FastLED#1390 atmega664 / 664A ATmega664/A / MightyCore no ATmega664.json / ATmega664A.json MightyCore ✗ none (gap) add ATmega664/A board JSON + MightyCore framework entry SPI_DATA / SPI_CLOCK defs for ATmega664 family

    fbuild-side gaps (regression-locked)

    PR #397 adds tripwire tests in crates/fbuild-packages/src/library/avr_framework.rs:

    • test_microcore_gap_tracked — asserts MicroCore lookup currently errors.
    • test_dxcore_gap_tracked — asserts dxcore lookup currently errors.

    Both flip when those cores get added to avr_frameworks.json, forcing a sync between the registry and the fixture READMEs.

    Verified-working AVR fixtures

    uno, atmega8, atmega8a, attiny85, attiny88, attiny4313, ATtiny1604, ATtiny1616, nano_every, leonardo, plus the newly added mega (ATmega2560).

    Build-validation note

    End-to-end builds of the new fixtures were not run in this pass because
    main currently fails to compile (Ch32vCompiler no longer exposes
    with_framework_root but ch32v/orchestrator.rs still calls it). The
    fix is in flight on fix/ch32v-warnings-382; once that lands the new
    fixtures should be runnable via soldr cargo run -p fbuild-cli -- build tests/platform/<dir> -e <env> --quick.

    Remaining fbuild-side todo

    1. Add MicroCore framework entry → unblocks attiny13.
    2. Add dxcore framework entry → unblocks AVR-Dx family.
    3. Add MightyCore framework entry + ATmega664 / ATmega664A board JSONs → unblocks atmega664.
    4. Add the four new fixtures to CI matrix once the upstream build break is resolved.
  3. zackees commented on Jun 3, 2026

    @zackees
    MemberAuthor

    Closing as mapped + tracked. Full per-issue table is in the previous comment.

    Concrete deliverables:

    Remaining fbuild-side follow-ups (each its own issue if/when prioritized):

    1. Add MicroCore to avr_frameworks.json → unblocks ATtiny13 (tests/platform/attiny13/).
    2. Add dxcore to avr_frameworks.json → unblocks AVR-Dx family (tests/platform/avr128da64/).
    3. Add MightyCore framework entry + ATmega664 / ATmega664A board JSONs → unblocks Atmega664A & Atmega664 "No hardware SPI pins defined."  FastLED#1390.
    4. Wire the four new fixtures into the CI matrix once the upstream Ch32vCompiler::with_framework_root regression on main is resolved.

    The remaining items on the FastLED side (pin maps, hardware SPI defs, asm guards for avr25, RAM-fit on tiny chips, alternative pin mappings) are out of scope for fbuild and are noted on each source FastLED issue.

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

    enhancementpriority: p2tracking

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions