Repository navigation
Description
Summary
After consuming the fbuild library-selector fix (fbuild 2.2.3 — tracked in #2403, now closed), Teensy 3.0 and Teensy LC CI builds still fail in CI, but with a new and different signature. The previous "multiple definition of FastLED" link failure is gone; these are now pure RAM-overflow link failures.
This is a code-size / static-allocation regression against the tiny Teensy 3.0 (16 KB RAM) and Teensy LC (8 KB RAM) targets, not an fbuild bug.
Failing CI runs (master, 8eb52e1)
teensy30board build: https://github.com/FastLED/FastLED/actions/runs/24901454256teensyLCboard build: https://github.com/FastLED/FastLED/actions/runs/24901454197check_teensy30_size/check_teensylc_sizealso fail (nobuild_info.jsonproduced — downstream of the link failure)
Observed failures
Teensy 3.0 (16 KB RAM)
Every example tried fails with a .dmabuffers overflow of essentially a fixed amount (~22.4 KB — larger than the entire chip RAM):
ld: firmware.elf section `.dmabuffers' will not fit in region `RAM'
ld: region `RAM' overflowed by 22404 bytes (AnalogOutput)
ld: region `RAM' overflowed by 22400 bytes (AudioFftParity, BeatDetection, ParallelSPI, PinMode)
ld: region `RAM' overflowed by 22424 bytes (RGBCalibrate)
ld: region `RAM' overflowed by 22412 bytes (Test)
The near-constant ~22 400 byte overflow across unrelated examples strongly suggests a single fixed-size .dmabuffers static allocation that is sized for a larger Teensy (4.x) and not gated behind a per-platform size budget for Teensy 3.0.
Teensy LC (8 KB RAM)
.bss overflow, smaller and varying per example:
ld: firmware.elf section `.bss' will not fit in region `RAM'
ld: region `RAM' overflowed by 1708–2424 bytes (across multiple examples)
Reference: passing Teensy boards
teensy31(64 KB RAM): PASSteensy32(64 KB RAM): PASSteensy41board build: status differs across jobs;check_teensy41_sizefails downstream of the globalcheck_*_sizebreakage, but the board build itself appears healthy
This rules out a generic Teensy breakage — only the RAM-starved 3.0 / LC fail, with the 3.0 failing by a single constant amount.
Suspected root cause
A static .dmabuffers (likely inside one of the Teensy-family clockless/SPI drivers) is sized for Teensy 4.x and is linked in unconditionally for Teensy 3.0 / LC as well. The fix is likely one of:
- Gate the large
.dmabuffersallocation behind a size-budget guard so Teensy 3.0 / LC do not instantiate it. - Pick a smaller DMA buffer size on Teensy 3.x / LC (they cannot support the Teensy-4-sized buffer anyway at 16 KB / 8 KB total RAM).
- If the code path is genuinely unusable on Teensy 3.0 / LC, stub it out for those targets instead of carrying a dead 22 KB buffer.
Minimal repro
./compile --no-interactive --no-parallel --max-failures 1 teensy30 AnalogOutput
./compile --no-interactive --no-parallel --max-failures 1 teensyLC BlinkRelated
- Track upstream fbuild Teensy 3.x/LC FastLED-shadowing fix and propagate downstream #2403 (closed):
fbuildlibrary-selector fix consumed — resolves the previousmultiple definition of FastLEDsymptom - P0: restore PlatformIO fallback for Teensy 3.x/LC until fbuild handles bundled FastLED cleanly #2398: original Teensy 3.x/LC CI regression issue — can be narrowed to this RAM-overflow follow-up
FastLED/fbuild#199(closed): upstreamfbuildfixFastLED/fbuild#198(merged): upstream fix PR
Exit criteria
teensy30 allandteensyLC allboard builds pass in CI through thefbuildpath- Any large
.dmabuffersstatic allocation is either sized per-target or not instantiated on Teensy 3.x / LC - Regression coverage keeps Teensy 3.0 / LC green
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Apr 24, 2026
Root cause confirmed — filed upstream
Investigated the fbuild link failure by running symbol analysis on a local
teensylc Blinkbuild (PlatformIO backend, for comparison).Observed RAM footprint (teensyLC Blink, 8192 B RAM budget)
pio run(local)Where the ~6 KB extra .bss is coming from
fbuild compiles every
libraries/<Name>/src/**under the Teensyduino framework package, regardless of reachability:libraries/FNETlibraries/Audiolibraries/mbedtlslibraries/SdFatlibraries/Snoozelibraries/RadioHeadcores/teensy3→ 300 of the 451 TUs are unreferenced. Their translation units contribute static-initialized data that
--gc-sectionscan't remove (init_array references pin them), which is what overflows.bsson teensyLC and.dmabufferson teensy30.Upstream issues filed
Consumer-side escape hatch landed
To unblock analysis and give anyone reproducing this a knob,
bash compilenow exposes a backend selector:This is how the above RAM numbers were collected; it can also serve as a temporary CI workaround for teensy30/LC until fbuild#204 lands.
Exit-criteria status
Not yet met — this issue should stay open until fbuild#204 is fixed and teensy30/teensyLC CI goes green through the fbuild path again.
feat(ci-compile): add --backend={fbuild,platformio} switch
zackees commentedon May 9, 2026
Same root cause as #2421 / #2420 in the Teensy form: every driver self-registers, so every driver's
.dmabuffers/.bssallocations go into the link even when the sketch only uses one chipset. #2428 proposes compile-timeBusbinding (Channel<fl::Bus::OBJECT_FLED, ClocklessChipset>etc.) — under that model only the bound driver's DMA buffers are instantiated, which should resolve the link-time RAM overflow on Teensy 3.0/LC.Fix Teensy Audio selection on low-memory boards