Skip to content

feat(nxplpc): bump ArduinoCore-LPC8xx pin to 50d76e0d — full NXP CMSIS PAL - #785

Merged
zackees merged 1 commit into
mainfrom
feat/bump-aclpc-to-50d76e0d-full-cmsis
Jun 28, 2026
Merged

zackees merged 1 commit into
mainfrom
feat/bump-aclpc-to-50d76e0d-full-cmsis

Conversation

@zackees

@zackees zackees commented Jun 28, 2026

Copy link
Copy Markdown
Member

Summary

Bumps the pinned ArduinoCore-LPC8xx commit (consumed by fbuild's nxplpc backend) from 195a2ed to 50d76e0d — the merge of zackees/ArduinoCore-LPC8xx#34, which ships the full NXP CMSIS Peripheral Access Layer.

This is the fbuild counterpart to:

After this merges, all three backends (arduino-cli, fbuild, platformio) pull the same ArduinoCore-LPC8xx commit with the full NXP CMSIS PAL.

Changes

Single file: crates/fbuild-packages/src/library/arduino_core_lpc8xx.rs

- COMMIT:   195a2eddd31eba8472ceaffa6a1a1902f72439ae
+ COMMIT:   50d76e0d63c2d2a2b365b29de47100d93c530c83
- VERSION:  0.1.0+g195a2ed
+ VERSION:  0.2.0+g50d76e0
- URL:      .../archive/195a2eddd31eba8472ceaffa6a1a1902f72439ae.tar.gz
+ URL:      .../archive/50d76e0d63c2d2a2b365b29de47100d93c530c83.tar.gz
- CHECKSUM: 366de74b93179ba4b5e8ac9e527f15f189d9e26bcedd030fe11c11a2c907f3e4
+ CHECKSUM: e6bbcc3392ae9da44c5c92268d7cd953770e0011fcf285561104633e36087428

Checksum was recomputed locally via curl -sSL <new-url> | sha256sum.

What the new pin brings in

The new ArduinoCore-LPC8xx ships:

  • variants/lpc845/LPC845.h — full NXP CMSIS PAL (~10,200 lines, BSD-3-Clause, rev. 1.2) replacing the prior 54-line stub
  • variants/lpc804/LPC804.h — full PAL (~7,400 lines) replacing the prior 49-line stub
  • variants/lpc{845,804}/system_LPC{845,804}.h — full NXP system headers replacing the prior 18-line stubs
  • cores/lpc8xx/fsl_device_registers.h updated to pull in lpc8xx_registers.h after the chip header, preserving Arduino-flavored aliases (LPC8XX_SYSCON, LPC8XX_SPI0, etc.) for backward compatibility

Peripheral typedefs now available downstream: SCT_Type, DMA_Type, SYSCON_Type, SPI_Type, GPIO_Type, SWM_Type, IOCON_Type, PINT_Type, INPUTMUX_Type, WKT_Type, MRT_Type, ADC_Type, ACOMP_Type, CAPT_Type, CRC_Type, CTIMER_Type, DAC_Type, FLASH_CTRL_Type, I2C_Type, MTB_Type, PMU_Type, USART_Type, WWDT_Type, plus PLU_Type for LPC804.

Pointer macros: SCT0, DMA0, SYSCON, SPI0, SPI1, GPIO, SWM0, IOCON, INPUTMUX, PINT, PLU (LPC804), etc.

Compatibility note — IRQn renames

The new vendor headers use chip-accurate IRQn names that differ from the old stub:

Old stub New NXP
SCT_IRQn SCT0_IRQn
DMA_IRQn DMA0_IRQn
MRT_IRQn MRT0_IRQn
CMP_IRQn CMP_CAPT_IRQn
ADC_SEQA_IRQn ADC0_SEQA_IRQn (LPC845 only)
PIN_INT{5,6,7}_IRQn PIN_INT5_DAC1_IRQn / PIN_INT6_USART3_IRQn / PIN_INT7_USART4_IRQn (LPC845 only)

The Arduino LPC8xx core's vector table (cores/lpc8xx/startup_lpc8xx.c) uses positional Default_Handler slots — no named IRQn references — so the core is unaffected. Downstream code that referenced the old IRQn names directly will need to update. Search results in this repo for the old names returned empty.

Test plan

  • cargo test -p fbuild-packages — verify checksum validation works
  • cargo test -p fbuild-build --test nxplpc_build_flags (existing test) — compile-flags-and-includes integration
  • cargo test -p fbuild-build --test nxplpc_core_compile_commands (existing test) — per-source compile_commands.json
  • CI: full LPC8xx build matrix (5 boards × 3 backends already passed on the upstream PR; this pin bump aligns fbuild with them)

Cross-references

🤖 Generated with Claude Code

…S PAL

Updates ACLPC_COMMIT, ACLPC_VERSION, ACLPC_URL, and ACLPC_CHECKSUM in
crates/fbuild-packages/src/library/arduino_core_lpc8xx.rs:

  COMMIT:   195a2eddd31eba8472ceaffa6a1a1902f72439ae
            -> 50d76e0d63c2d2a2b365b29de47100d93c530c83
  VERSION:  0.1.0+g195a2ed -> 0.2.0+g50d76e0
  URL:      bumped tarball URL to new SHA
  CHECKSUM: 366de74b93179ba4b5e8ac9e527f15f189d9e26bcedd030fe11c11a2c907f3e4
            -> e6bbcc3392ae9da44c5c92268d7cd953770e0011fcf285561104633e36087428

FastLED/framework-arduino-lpc8xx#34 ships the full NXP CMSIS Peripheral Access
Layer in variants/lpc845/LPC845.h (~10K lines) and variants/lpc804/
LPC804.h (~7K lines), replacing the previous 54/49-line IRQn-only stubs.
The vendor headers (rev. 1.2, BSD-3-Clause from nxp-mcuxpresso/mcux-sdk)
provide canonical peripheral typedefs (SCT_Type, DMA_Type, SYSCON_Type,
SPI_Type, GPIO_Type, SWM_Type, IOCON_Type, PINT_Type, INPUTMUX_Type,
PLU_Type for LPC804, etc.) plus pointer macros (SCT0, DMA0, SYSCON,
SPI0/1, PLU, IOCON, SWM0, ...).

Unblocks downstream FastLED #3437 which migrated FastLED's LPC drivers
to vendor typedefs (FastLED/FastLED#3438 merged today). After this
fbuild pin bump, the fbuild backend will pull the same upstream commit
that the platformio backend now pulls via platform-nxplpc-arduino
v0.2.0 (FastLED/platform-nxp-lpc8xx#9, also pinned at the same
ArduinoCore-LPC8xx SHA).

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Jun 28, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@zackees, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 26 minutes and 2 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 74576b74-acc7-4a23-9d27-ed038c45a4b3

📥 Commits

Reviewing files that changed from the base of the PR and between 1108a0b and 85c5d75.

📒 Files selected for processing (1)
  • crates/fbuild-packages/src/library/arduino_core_lpc8xx.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/bump-aclpc-to-50d76e0d-full-cmsis

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 7760b33 into main Jun 28, 2026
28 of 90 checks passed
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Jun 29, 2026
@zackees
zackees deleted the feat/bump-aclpc-to-50d76e0d-full-cmsis branch October 16, 2026 11:19
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