Repository navigation
Closed as not planned
Description
Scope
Extend FastLED's LPC SPI support beyond the current LPC845 / LPC804 pair to cover the two other LPC families FastLED tracks:
- LPC11Uxx (LPC11U24, LPC11U35, etc.) — Cortex-M0 with the SSP peripheral (UM10462 §14). NOT the same block as LPC8xx SPI.
- LPC15xx (LPC1517, LPC1519, LPC1547, LPC1549) — Cortex-M3 with a similar SPI peripheral to LPC8xx but at different base addresses (UM11074 §21).
Both families already have platform-detection macros wired in `src/platforms/arm/lpc/is_lpc.h`:
- `FL_IS_ARM_LPC_11_USB` (LPC11U24 / LPC11U35)
- `FL_IS_ARM_LPC_11_LEGACY` (LPC1110/1112/1114/1115)
- `FL_IS_ARM_LPC_15`
but the clockless drivers (`clockless_arm_lpc.h`, using the shared M0 C++ implementation) are the only current LED-side driver for those families. No SPI driver exists.
What's needed
Prerequisites
-
Vendor CMSIS PAL headers. Currently `FastLED/framework-arduino-lpc8xx` ships only `variants/lpc845/` and `variants/lpc804/`. Would need:
- `variants/lpc11u35/LPC11U35.h` (SSP0/SSP1 declarations, base 0x40040000 / 0x40058000 per UM10462 §33)
- `variants/lpc15xx/LPC1549.h` (SPI0/SPI1, base 0x40058000 / 0x4005C000 per UM11074 §21)
- Startup files, linker scripts, variant.cpp per family.
- Naming convention: framework-arduino-lpc8xx is currently a misnomer if it grows LPC11xx / LPC15xx — either rename to framework-arduino-nxplpc or split into per-family framework repos.
-
Board configs. `ci/boards.py` currently has:
LPC845 / LPC845BRK / LPC804 / LPCXPRESSO845MAX / LPCXPRESSO804
Add:
- LPCXpresso11U35 (LPC11U35 dev board)
- LPCXpresso1549 (LPC15xx dev board)
-
fbuild-side platform support. The current `platform-nxp-lpc8xx` repo is LPC8xx-scoped. Either widen to LPC11 / LPC15 or create sibling platforms.
LPC11Uxx SSP driver
- New file: `src/platforms/arm/lpc/spi_arm_lpc11_ssp.h` (or fold into `spi_arm_lpc.h` under gate branches).
- SSP register layout (UM10462 §14.6):
- `CR0` (control 0 — data size + frame format + polarity + phase)
- `CR1` (control 1 — SSP enable, master/slave)
- `DR` (data reg — TX writes, RX reads)
- `SR` (status — TNF, RNE, BSY)
- `CPSR` (clock prescale)
Very different from LPC8xx SPI's TXDATCTL / TXDAT / TXCTL model.
- Gate: `FL_IS_ARM_LPC_11_USB` (LPC11U family — LPC11xx legacy uses the same SSP block on some SKUs but not all; needs per-SKU check).
LPC15xx SPI driver
- The LPC15xx SPI peripheral (UM11074 §21) is architecturally close to LPC8xx SPI — same TXDATCTL / TXDAT / TXCTL model.
- Likely reusable with LPC8xx driver via gate widening: add `FL_IS_ARM_LPC_15` to `spi_arm_lpc.h` gate and validate the base addresses (0x40058000 SPI0 / 0x4005C000 SPI1 per UM11074 §21.2).
- DMA variant (`spi_arm_lpc_dma.h`): LPC15xx has a very different DMA controller than LPC8xx DMA0 — likely needs its own driver rather than gate widening.
Acceptance
- Vendor CMSIS PAL for at least LPC11U35 lands in `framework-arduino-lpc8xx` (or successor).
- LPCXpresso11U35 board config lands in `ci/boards.py`.
- LPC11U35 polled SPI driver (SSP-based) compiles and passes host tests.
- Silicon validation gets its own follow-up harness once LPC11 hardware is available.
Refs
- Parent meta: meta: LPC dev roadmap — Stages 3 + 4 (port completion, family expansion) #2845 Stage 4 (LPC family expansion).
- Related: LPC8xx: async DMA output drivers — Phase 1 SPI, Phase 2 clockless bring-up #3453 (Phase 1 SPI DMA — LPC845/LPC804 side).
- Companion LPC804 SPI DMA support blocked on vendor CMSIS PAL — missing DMA_Type / DMA0 in <LPC804.h> #3499 established the vendor-header cascade pattern (framework PR → fbuild bump → FastLED gate widening) that this issue would follow.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsDone
Activity
docs(lpc): refresh README with SCT/DMA channels engine + SPI DMA driv…
zackees commentedon Jul 6, 2026
Closing as outside the current LPC845-BRK board bring-up scope.
Active LPC board tracking is consolidated under #3348, with #3300 and #3302 as the only remaining FastLED-side sub-issues. LPC11Uxx/LPC15xx family expansion can be re-filed when that hardware/platform work becomes active.