Repository navigation
Add hardware SPI support for Arduino Nano Every - #1166
Merged
Merged
Conversation
Member
|
Looks good - thank you for the PR. If we need to make it more configurable later, we can look at that, but this is great for now for the Nano Every. Thank you for helping out with FastLED! |
zackees
added a commit
that referenced
this pull request
Aug 1, 2026
163 commits upstream since the version the previous `>=1.12.15` constraint was resolving to. Three map onto build failures seen during long local sessions: #1151 warm-cache deadlock + perf watchdog -> "embedded zccache compile timed out after 300s" #1180 shorten artifact locks, defer metadata GC #1193 embedded-cache durability; daemon drains the index-writer WAL before shutdown aborts it -> "daemon did not become healthy after 3 spawn attempts" Both symptoms recurred while running `bash compile` across several boards, to the point that an unmodified-master control build failed identically -- environmental rather than source-caused, but they blocked verification work. Separately worth noting, #1166 puts the C/C++ compiler binary identity into the cache key. Previously a toolchain swap could serve objects built by the previous compiler -- a wrong-output bug, not a slow-build one, and relevant here because FastLED drives avr-gcc, arm-none-eabi-gcc, xtensa and host clang out of one cache. Security: journal environments no longer persist secrets (#1179) and daemon-owned artifact retention is bounded (#1169). fbuild stays at 2.5.5; it embeds its own zccache copy and realigning that is an upstream concern. uv.lock is gitignored here, so the floor in pyproject.toml is what actually moves resolution. Verified after `uv lock && uv sync` (zccache reports 1.13.0): bash test --cpp --clean 359/359 bash compile uno 5036 B (this was the build that wedged) bash compile esp8266 269475 B bash lint clean Closes #3819 Co-Authored-By: Claude <[email protected]>
zackees
added a commit
that referenced
this pull request
Aug 1, 2026
163 commits upstream since the version the previous `>=1.12.15` constraint was resolving to. Three map onto build failures seen during long local sessions: #1151 warm-cache deadlock + perf watchdog -> "embedded zccache compile timed out after 300s" #1180 shorten artifact locks, defer metadata GC #1193 embedded-cache durability; daemon drains the index-writer WAL before shutdown aborts it -> "daemon did not become healthy after 3 spawn attempts" Both symptoms recurred while running `bash compile` across several boards, to the point that an unmodified-master control build failed identically -- environmental rather than source-caused, but they blocked verification work. Separately worth noting, #1166 puts the C/C++ compiler binary identity into the cache key. Previously a toolchain swap could serve objects built by the previous compiler -- a wrong-output bug, not a slow-build one, and relevant here because FastLED drives avr-gcc, arm-none-eabi-gcc, xtensa and host clang out of one cache. Security: journal environments no longer persist secrets (#1179) and daemon-owned artifact retention is bounded (#1169). fbuild stays at 2.5.5; it embeds its own zccache copy and realigning that is an upstream concern. uv.lock is gitignored here, so the floor in pyproject.toml is what actually moves resolution. Verified after `uv lock && uv sync` (zccache reports 1.13.0): bash test --cpp --clean 359/359 bash compile uno 5036 B (this was the build that wedged) bash compile esp8266 269475 B bash lint clean Closes #3819 Co-authored-by: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tested working with official Arduino Nano Every and an APA102 LED strip.
The Arduino Nano Every pinout sheet (https://content.arduino.cc/assets/Pinout-NANOevery_latest.pdf), lists the SPI0 ports in the ALT2 portmux position (PE[3:0]), so that's where they're set in this PR using the PORTMUX_TWISPIROUTEA register (page 138 in http://ww1.microchip.com/downloads/en/DeviceDoc/ATmega4808-4809-Data-Sheet-DS40002173A.pdf). This could be configurable with some more effort.