Skip to content

feat(sam): add ClearCore SAME53 builds - #1333

Merged
zackees merged 1 commit into
mainfrom
feat/clearcore-same53
Aug 21, 2026
Merged

zackees merged 1 commit into
mainfrom
feat/clearcore-same53

Conversation

@zackees

@zackees zackees commented Aug 21, 2026 •

Copy link
Copy Markdown
Member

Summary

  • add the Teknic ClearCore/SAME53 board and vendor framework package
  • use a checksum-verified GCC 9 toolchain path compatible with the vendor libraries
  • add a real ClearCore fixture, dedicated workflow, nightly coverage, and README badge

Verification

  • real ClearCore fixture build passed
  • focused SAM, library, and toolchain tests passed
  • formatting, workflow rendering, and diff checks passed
  • cross-repository clud-review: clean

Coordinated with FastLED/FastLED#3957. This fbuild PR must land first.

Summary by CodeRabbit

  • New Features

    • Added build support for the Teknic ClearCore SAME53 board.
    • Added ClearCore board configuration, Arduino framework integration, and firmware output support.
    • Added a compile-only platform smoke test for ClearCore.
    • Added SAME-series MCU support, including SAME51, SAME53, and SAME54 devices.
  • Documentation

    • Updated board listings, platform coverage, CI badges, and configuration documentation to include ClearCore and SAME devices.
    • Updated the documented board database count to 1,636 boards.

Adds the vendor core, board metadata, checksum-pinned toolchain path, fixture, CI workflow, and build badge needed for compile-only ClearCore coverage.\n\nSupports FastLED/FastLED#3839.
@coderabbitai

coderabbitai Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 237f2f2f-8856-4162-ab24-bea6844e8c72

📥 Commits

Reviewing files that changed from the base of the PR and between e58a7a5 and b1ee6c0.

📒 Files selected for processing (25)
  • .github/workflows/build-clearcore.yml
  • .github/workflows/nightly-platforms.yml
  • README.md
  • ci/board_families.json
  • ci/validate_boards.py
  • crates/fbuild-build-arm/src/sam/configs/README.md
  • crates/fbuild-build-arm/src/sam/configs/same5x.json
  • crates/fbuild-build-arm/src/sam/mcu_config.rs
  • crates/fbuild-build-arm/src/sam/orchestrator.rs
  • crates/fbuild-config/assets/README.md
  • crates/fbuild-config/assets/boards/README.md
  • crates/fbuild-config/assets/boards/json/clearcore.json
  • crates/fbuild-config/assets/boards/manifest.json
  • crates/fbuild-config/src/board/db.rs
  • crates/fbuild-library/src/library/README.md
  • crates/fbuild-library/src/library/clearcore_core.rs
  • crates/fbuild-library/src/library/cmsis_framework.rs
  • crates/fbuild-library/src/library/mod.rs
  • crates/fbuild-toolchain/src/toolchain/arm_gcc8.rs
  • docs/BOARD_STATUS.md
  • tests/platform/README.md
  • tests/platform/clearcore/README.md
  • tests/platform/clearcore/platformio.ini
  • tests/platform/clearcore/src/README.md
  • tests/platform/clearcore/src/main.ino

📝 Walkthrough

Walkthrough

This PR adds Teknic ClearCore SAME53 support. It adds board and MCU metadata, ClearCore framework installation, GCC 8 toolchain handling, SAM orchestration, a compile-only platform test, and scheduled and event-driven CI workflows.

Changes

ClearCore SAME53 support

Layer / File(s) Summary
Board and SAME5x build contracts
crates/fbuild-config/assets/boards/json/clearcore.json, crates/fbuild-config/assets/boards/manifest.json, crates/fbuild-build-arm/src/sam/configs/*, crates/fbuild-build-arm/src/sam/mcu_config.rs, crates/fbuild-config/...
The board database now defines clearcore and its SAME53N19A metadata. SAM configuration selection now supports SAME51, SAME53, and SAME54 MCUs.
ClearCore framework and toolchain packages
crates/fbuild-library/src/library/clearcore_core.rs, crates/fbuild-library/src/library/cmsis_framework.rs, crates/fbuild-library/src/library/mod.rs, crates/fbuild-toolchain/src/toolchain/arm_gcc8.rs, crates/fbuild-library/src/library/README.md
The build can install and validate ClearCore framework files, resolve CMSIS-DSP libraries, and download GCC 8 packages with SHA-256 checksums.
SAM orchestration for ClearCore
crates/fbuild-build-arm/src/sam/orchestrator.rs
The orchestrator detects ClearCore, selects GCC 8, installs ClearCore and CMSIS dependencies, applies board defines, removes the duplicate api/itoa.c source, and passes structured linker metadata.
Platform smoke test and CI wiring
tests/platform/clearcore/*, tests/platform/README.md, .github/workflows/build-clearcore.yml, .github/workflows/nightly-platforms.yml, ci/board_families.json, ci/validate_boards.py, README.md, docs/BOARD_STATUS.md
The new Arduino smoke test toggles pin 0. Event-driven and nightly workflows build the clearcore environment and produce .bin firmware. Board validation and documentation include ClearCore.
Estimated code review effort: 4 (Complex) ~60 minutes

Sequence Diagram(s)

sequenceDiagram
  participant CI
  participant SamOrchestrator
  participant ClearCoreCores
  participant ArmGcc8Toolchain
  participant ClearCoreSmokeTest
  CI->>SamOrchestrator: build the clearcore environment
  SamOrchestrator->>ArmGcc8Toolchain: select and verify GCC 8
  SamOrchestrator->>ClearCoreCores: install ClearCore framework
  ClearCoreCores-->>SamOrchestrator: return framework and library paths
  SamOrchestrator->>ClearCoreSmokeTest: compile and link main.ino
  ClearCoreSmokeTest-->>CI: produce binary firmware
Loading
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/clearcore-same53

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@zackees
zackees merged commit 7f78bc2 into main Aug 21, 2026
95 of 96 checks passed
@zackees
zackees deleted the feat/clearcore-same53 branch August 21, 2026 01:17
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Aug 21, 2026
zackees added a commit that referenced this pull request Aug 21, 2026
…macOS spawn-lock de-flake (#1338)

* fix(dylint): allowlist clearcore_core.rs legacy PathBuf sites

PR #1333 added clearcore_core.rs with std::path::PathBuf but did not add
the file to the ban_std_pathbuf legacy allowlist, so every Dylint run over
a merge commit containing #1333 fails with 11 deny-by-default errors in
fbuild-library. All sibling library core files (sam_core.rs, apollo3_core.rs,
ch32v_core.rs, ...) are already allowlisted the same way.

Co-Authored-By: Claude <[email protected]>

* docs(dylint): justify clearcore_core.rs allowlist entry (#1339)

Per the allowlist rollout policy, new-file entries carry an inline
justification comment referencing the tracking issue for the eventual
repo-wide NormalizedPath migration.

Co-Authored-By: Claude <[email protected]>

* fix(ci): de-flake macOS spawn-lock post-release re-acquire

Check (macos-latest) on a merge of current main failed in
daemon_ownership::tests::spawn_lock_is_exclusive_within_process: the
post-release re-acquire through the error-propagating variant returned
Ok(None) — the kernel reported EWOULDBLOCK immediately after the holder
dropped (#1340).

Two changes:
- FileLockGuard::Drop now unlocks explicitly instead of relying on
  close-release, matching soldr's lifecycle guard; close-release can lag
  an immediately-following re-acquire on macOS.
- Post-release re-acquire assertions poll through a 1s deadline (10ms
  poll) in daemon_ownership and file_lock tests, encoding the production
  contract (poll-and-retry) as eventual availability. Hard I/O errors
  still fail immediately.

Co-Authored-By: Claude <[email protected]>

* style: fix rustfmt formatting in daemon_ownership test

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

1 participant