Skip to content

lpc8xx: fbuild build is shipping for all 5 ArduinoCore-LPC8xx variants — add FastLED canary sketches to CI #2990

Description

@zackees

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:

(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

cc @phatpaul @zackees

Activity

  1. moved this from Triage to Done in FastLED Trackeron Jun 15, 2026
  2. added a commit that references this issue on Jun 15, 2026
    4a514d4
  3. phatpaul commented on Jun 17, 2026

    @phatpaul
    Contributor

    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:

    ~/repos/FastLED (master *%=) $ ./compile lpc845brk --examples Blink
    
    Running uv run ci/ci-compile.py lpc845brk --examples Blink
    
    Starting compilation for 1 boards with 1 examples
    
    ============================================================
    COMPILING BOARD: lpc845brk
    EXAMPLES: Blink
    COMPILING 1 example(s)...
    BUILD BACKEND: fbuild
    ============================================================
    Merging 5 build_flag(s) from root platformio.ini [env:lpc845brk]: ['build_flags =', '-DRELEASE', '-DFASTLED_LPC_PWM_DMA=1', '-DFASTLED_AUTORESEARCH_LOW_MEMORY=1', '-DFASTLED_LPC_RX_SCT_WS2812=1']
    Applied PlatformIO cache optimization using cache directory: /home/paul/.fastled/global_cache
    Applied build_flags: ['-Wl,-Map,/home/paul/repos/FastLED/.build/pio/lpc845brk/firmware.map', 'build_flags =', '-DRELEASE', '-DFASTLED_LPC_PWM_DMA=1', '-DFASTLED_AUTORESEARCH_LOW_MEMORY=1', '-DFASTLED_LPC_RX_SCT_WS2812=1']
    Applied additional include dirs: ['/home/paul/repos/FastLED/.build/pio/lpc845brk/src', '/home/paul/repos/FastLED/.build/pio/lpc845brk/src/sketch']
    ======================
    =   BUILDING Blink   =
    ======================
    Copied examples/Blink/Blink.ino to .build/pio/lpc845brk/src/sketch
    Synced FastLED library: src -> .build/pio/lpc845brk/lib/FastLED
    Copied library.json to .build/pio/lpc845brk/lib/FastLED
    Copied examples/Blink/Blink.ino to .build/pio/lpc845brk/src/sketch
    ============================================================
    COMPILING (fbuild)
    ============================================================
    Running: /home/paul/repos/FastLED/.venv/bin/fbuild /home/paul/repos/FastLED/.build/pio/lpc845brk build -e lpc845brk
    
    unsupported platform: 
    fbuild executable: /home/paul/repos/FastLED/.venv/bin/fbuild
    fbuild version: 2.2.28
    fbuild-daemon executable: /home/paul/repos/FastLED/.venv/bin/fbuild-daemon
    daemon endpoint: http://127.0.0.1:8765
    running-process broker: direct daemon fallback (running-process broker client stubbed)
    
    ❌ Compilation failed (fbuild) [0.1s]
    
    FAILED: Blink
    Releasing platform lock: /home/paul/repos/FastLED/.build/pio/lpc845brk.lock
    
    ERROR: Compilation failed for board lpc845brk
    
    ------------------------------------------------------------
    Sketch: Blink
    ------------------------------------------------------------
    unsupported platform: 
    fbuild executable: /home/paul/repos/FastLED/.venv/bin/fbuild
    fbuild version: 2.2.28
    fbuild-daemon executable: /home/paul/repos/FastLED/.venv/bin/fbuild-daemon
    daemon endpoint: http://127.0.0.1:8765
    running-process broker: direct daemon fallback (running-process broker client stubbed)
    
    Compilation finished in 00m:00s with 1 error(s):
      - Board lpc845brk failed
    
    ERROR! There were 1 failures:
      Blink

    And PlatformIO:

    Processing lpc845brk (platform: https://github.com/zackees/platform-nxplpc-arduino.git; board: lpc845brk; framework: arduino)
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Verbose mode can be enabled via `-v, --verbose` option
    CONFIGURATION: https://docs.platformio.org/page/boards/nxplpc-arduino/lpc845brk.html
    PLATFORM: NXP LPC (Arduino) (0.1.0+sha.2ee527a) > NXP LPC845-BRK
    HARDWARE: LPC845 24MHz, 16KB RAM, 64KB Flash
    DEBUG: Current (cmsis-dap) On-board (cmsis-dap) External (blackmagic, jlink)
    PACKAGES: 
     - framework-arduino-lpc8xx @ 0.1.0 
     - toolchain-gccarmnoneeabi @ 1.80201.181220 (8.2.1)
    Converting Blink.ino
    LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 1 compatible libraries
    Scanning dependencies...
    Dependency Graph
    |-- FastLED @ 3.10.3
    Building in release mode
    Compiling .pio/build/lpc845brk/src/Blink.ino.cpp.o
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/extras+.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/fl.asset+.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/fl.audio+.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/fl.channels+.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/fl.chipsets+.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/fl.codec+.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/fl.control+.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/fl.font+.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/fl.fx+.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/fl.gfx+.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/fl.log+.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/fl.math+.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/fl.net+.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/fl.remote+.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/fl.sensors+.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/fl.stl+.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/fl.system+.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/fl.system.sd+.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/fl.task+.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/fl.test+.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/fl.ui+.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/fl.video+.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/fl.wdt+.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/platforms+.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/src.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/fl/build/third_party+.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/platforms/esp/32/drivers/gpio_isr_rx/fast_isr.S.o' from cache
    Retrieved `.pio/build/lpc845brk/libba5/FastLED/third_party/libhelix_mp3/real/arm/asmpoly_gcc.S.o' from cache
    Retrieved `.pio/build/lpc845brk/FrameworkArduinoVariant/variant.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/FrameworkArduino/HardwareSerial.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/libFrameworkArduinoVariant.a' from cache
    Retrieved `.pio/build/lpc845brk/libba5/libFastLED.a' from cache
    Retrieved `.pio/build/lpc845brk/FrameworkArduino/SPI.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/FrameworkArduino/Tone.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/FrameworkArduino/WInterrupts.c.o' from cache
    Retrieved `.pio/build/lpc845brk/FrameworkArduino/Wire.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/FrameworkArduino/lpc8xx_runtime.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/FrameworkArduino/main.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/FrameworkArduino/startup_lpc8xx.c.o' from cache
    Retrieved `.pio/build/lpc845brk/FrameworkArduino/wiring.cpp.o' from cache
    Retrieved `.pio/build/lpc845brk/FrameworkArduino/wiring_analog.c.o' from cache
    Retrieved `.pio/build/lpc845brk/FrameworkArduino/wiring_digital.c.o' from cache
    Retrieved `.pio/build/lpc845brk/FrameworkArduino/wiring_math.c.o' from cache
    Retrieved `.pio/build/lpc845brk/FrameworkArduino/wiring_time.c.o' from cache
    Retrieved `.pio/build/lpc845brk/libFrameworkArduino.a' from cache
    Linking .pio/build/lpc845brk/firmware.elf
    /home/paul/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld: cannot find -l/home/paul/repos/FastLED/build_flags
    /home/paul/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld: cannot find -l/home/paul/repos/FastLED/=
    collect2: error: ld returned 1 exit status
    *** [.pio/build/lpc845brk/firmware.elf] Error 1
    ============================================================================== [FAILED] Took 3.36 seconds 
  4. moved this from Done to Triage in FastLED Trackeron Jun 17, 2026
  5. zackees commented on Jun 17, 2026

    @zackees
    MemberAuthor

    I'll have this fixed by tomorrow.

  6. zackees commented on Jun 17, 2026

    @zackees
    MemberAuthor

    Fixed.

    The LPC8xx FastLED canary work landed in:

    To pick this up, update to current master or the next FastLED release that includes #3080/#3091. For local builds, make sure your fbuild install is current enough to include the nxplpc / ArduinoCore-LPC8xx orchestrator support, then run the normal FastLED compile flow, for example ./compile lpc845brk --examples Blink.

  7. moved this from Triage to Done in FastLED Trackeron Jun 17, 2026
  8. zackees commented on Jun 18, 2026

    @zackees
    MemberAuthor

    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.

  9. phatpaul commented on Jun 18, 2026

    @phatpaul
    Contributor

    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.

  10. moved this from Done to Triage in FastLED Trackeron Jun 18, 2026
  11. zackees commented on Jun 18, 2026

    @zackees
    MemberAuthor

    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.

  12. moved this from Triage to Done in FastLED Trackeron Jun 19, 2026
  13. phatpaul commented on Jun 23, 2026

    @phatpaul
    Contributor

    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.

    // GPIO pin for LED data line (adjust for your hardware)
    #define PIN_DATA 0 // was 3 but that is SWD clock pin for debugging
    

    Running the Blink example, I see pulses at regular intervals. (100ms as I changed the delay in the Blink example to 100ms.

    Image

    Zoomin in, I see 24 pulses on the DATA pin at regular interval.

    Image

    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.

    Image

    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 the byte value is always 0.

  14. phatpaul commented on Jun 23, 2026

    @phatpaul
    Contributor

    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

  15. zackees commented on Jun 23, 2026

    @zackees
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions