Repository navigation
Description
TL;DR
fbuild now builds NXP LPC8xx end-to-end against the `ArduinoCore-LPC8xx` framework for all five variants. Time to add a FastLED canary on this family so the WS2812 driver work proposed in #2831 can land against a CI-protected build.
Status of #2836's two stages
#2836 was the meta plan: Stage 1 = build/toolchain support in fbuild; Stage 2 = WS2812 driver in FastLED. That meta is closed but the work is not — fbuild's portion now lives in FastLED/fbuild#487, and Stage 1 is complete:
- fbuild#488 merged the real `NxpLpcOrchestrator` on 2026-06-07.
- fbuild#521 added project-local `variants//pins_arduino.h` resolution.
- `zackees/ArduinoCore-LPC8xx` exists with cores + variants for `lpc804`, `lpc845`, `lpc845brk`, `lpcxpresso804`, `lpcxpresso845max`.
Upstream proof — `pip install fbuild && fbuild build . -e ` is green on `main` as of 2026-06-09:
- `fbuild / lpc845brk` → https://github.com/zackees/ArduinoCore-LPC8xx/actions/runs/27182402201 ✅
- `fbuild / lpcxpresso804` → https://github.com/zackees/ArduinoCore-LPC8xx/actions/runs/27182311515 ✅
- `fbuild / lpcxpresso845max` → https://github.com/zackees/ArduinoCore-LPC8xx/actions/runs/27182311504 ✅
(lpc804 + lpc845 use the same orchestrator path — they were the original Stage-1 targets.)
Ask
This issue is Stage 6 of fbuild's META #487 from FastLED's side — the canary that proves a real FastLED sketch (not just an empty `.ino`) compiles via fbuild on all five variants.
- Add LPC8xx to FastLED's `is_arm` dispatcher per Porting to LPC8xx #2831's Stage 2a (LPC845 bit-bang via the KL26 template at `src/platforms/arm/kl26/clockless_arm_kl26.h`).
- Wire `examples/Blink/Blink.ino` into FastLED's per-board CI for all five variants (`lpc804`, `lpc845`, `lpc845brk`, `lpcxpresso804`, `lpcxpresso845max`).
- LPC804 PLU driver (Porting to LPC8xx #2831 Stage 2b) tracked separately; this issue is the bit-bang baseline.
The CI invocation mirrors upstream `_fbuild.yml`: `pip install fbuild && fbuild build . -e ` from a checkout shaped like `ArduinoCore-LPC8xx`.
Related
- Porting to LPC8xx #2831 — original WS2812 / PLU feasibility discussion
- meta: port FastLED to NXP LPC8xx (LPC804 + LPC845) — two-stage plan #2836 — closed meta for the two-stage plan; Stage 1 is now done upstream
- [META] LPC8xx end-to-end support: orchestrator + Arduino framework + real FastLED sketches fbuild#487 — fbuild-side META, Stage 6 owns this work
- feat(nxplpc): real Stage-2 build orchestrator (#477, part of #487) fbuild#488 — orchestrator PR
- lpc8xx: convert 5 stub workflows to real builds (Stage 8 of #487) — orchestrator + upstream proof are in fbuild#528 — un-stub fbuild's per-board CI (Stage 8)
- `zackees/ArduinoCore-LPC8xx` — variant source of truth
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
ci(lpc8xx): add Blink canary workflows for all 5 ArduinoCore-LPC8xx v…
phatpaul commentedon Jun 17, 2026
Hi @zackees. I'm struggling to get it to build on both PlatformIO and fbuild. I ran out of AI credits this month, and the tooling here is just too complex to follow.
I'm going back to my trusty old Makefile based bare-metal build for now...
Here is fbuild:
And PlatformIO:
zackees commentedon Jun 17, 2026
I'll have this fixed by tomorrow.
zackees commentedon Jun 17, 2026
Fixed.
The LPC8xx FastLED canary work landed in:
Blinkas the initial canary.DemoReel100andFx/FxEngine.To pick this up, update to current
masteror the next FastLED release that includes #3080/#3091. For local builds, make sure yourfbuildinstall is current enough to include thenxplpc/ ArduinoCore-LPC8xx orchestrator support, then run the normal FastLED compile flow, for example./compile lpc845brk --examples Blink.zackees commentedon Jun 18, 2026
Also, driver dev is going great. I should have all the theoretical drivers done by monday. The biggest help is just to do a blink test, which will test compile/deploy/simple LED bitbanging.
Please file a new issue if anything doesn't work. By monday I hope to have this all wrapped up with no further issues. You won't believe how many tokens were spent in reducing flash and ram consumption to get the LPC family to work with my auto research tool.
phatpaul commentedon Jun 18, 2026
Well, I finally got a pin toggling on/off with fl::FastPin<LED_PIN>::hi(); See #3212
That is usually not so difficult because I typically use the chip vendors SDK and tooling. I resorted to use the MCUXpresso SDK and proprietary tools (Segger Ozone) to debug it because I was not having a good time with the source-level debugging in PlatformIO.
Next step is to get the blink example working with actual WS2811 data output? I see it builds now, but just hardfaults before even entering main(). And I can't even compile my bare metal SDK project if I #include <FastLED.h>. So still a bit of work to do.
Thanks so much for your help.
zackees commentedon Jun 18, 2026
If you can provide any more context it's going to really help me.
Yes you are going to get full WS281X support and all the other LED chipsets too. I see the chipset supports DMA in certain modes so my expectation is that you'll get digital leds playing nicely with interrupts.
phatpaul commentedon Jun 23, 2026
I spent some time testing today.
I changed the Blink example DATA output pin because PIO0_3 is used as debugger connection SWCLK, so that pin should not be used on LPC8xx.
Running the Blink example, I see pulses at regular intervals. (100ms as I changed the delay in the Blink example to 100ms.
Zoomin in, I see 24 pulses on the DATA pin at regular interval.
And Zoomed-in you can see that the width if each pulse is 3.7us, which is clearly not right. It should be 0.4us for 0 and 0.8us for 1.
Also, the width is never changing, even though the RGB should be alternating between RED (255,0,0) and Black (0,0,0).
I attempted to debug but got lost in the complexity of the C++ code. I see the
leds[0]value changing in the my debugger memory view, but when it gets to gpio_conditional_low() function, it seems that thebytevalue is always 0.phatpaul commentedon Jun 23, 2026
I fixed another wrong register offset for the pwm_dma version. BTW, This seems like a waste of time debugging AI hallucinated register maps, when it would be so much easier and safer to use the vendor provided CMSIS Peripheral Access Layer for LPC845
LPC845.h. Is there a reason you can't use the vendor's version?It is available here: https://github.com/nxp-mcuxpresso/mcux-devices-lpc/tree/main/LPC800/LPC845 with BSD-3-Clause license.
@zackees pinging you as requested.
See #3349
zackees commentedon Jun 23, 2026
docs(platforms): mandate vendor CMSIS PAL for register maps