Skip to content

lpc8xx: fix build errors on bare-metal. WIP example for LPC845. - #2988

Closed
phatpaul wants to merge 1 commit into
FastLED:masterfrom
phatpaul:fix/2836-port-fastled-to-nxp-lpc8xx
Closed

phatpaul wants to merge 1 commit into
FastLED:masterfrom
phatpaul:fix/2836-port-fastled-to-nxp-lpc8xx

Conversation

@phatpaul

@phatpaul phatpaul commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Trying to get a minimal example working on LPC845 bare-metal (no arduino).

I added a bunch of CMSIS files to the example to get it to compile. Let me know if any files are not needed and I'll remove from the PR.

@coderabbitai

coderabbitai Bot commented Jun 8, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 916f0928-3885-433e-b025-c8849fdc4f8b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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 and usage tips.

@zackees

zackees commented Jun 8, 2026

Copy link
Copy Markdown
Member

Thanks for this, I'm having the AI ingest your changes and organize it into the right place.

@zackees

zackees commented Jun 8, 2026 •

Copy link
Copy Markdown
Member

build_info stuff needs to go into the fbuild project, which is a drop in replacement for platformio and will read platformio.ini just fine.

I'll start migrating that.

@zackees

zackees commented Jun 8, 2026 •

Copy link
Copy Markdown
Member

Arduino shim: https://github.com/zackees/ArduinoCore-LPC8xx

Not that I want to force you into the arduino way of doing things, but it's critical for FastLED QA that there is a Arduino support library in order to get your platform on long term support. Our testing infrastructure requires it. You are free however in your own project to just skip setup() and loop() and go directly to main()

@zackees

zackees commented Jun 8, 2026 •

Copy link
Copy Markdown
Member

Okay we have a platformio.ini prototype for your lpc8xx boards, this works with platformio and soon fbuild

[platformio]
default_envs = lpc845brk

[env]
platform = https://github.com/zackees/platform-nxplpc-arduino.git
framework = arduino
upload_protocol = cmsis-dap
debug_tool = cmsis-dap

[env:lpc845brk]
board = lpc845brk
board_build.ldscript = ${platformio.packages_dir}/framework-arduino-lpc8xx/linker_scripts/gcc/lpc845_flash.ld

[env:lpcxpresso804]
board = lpcxpresso804
board_build.ldscript = ${platformio.packages_dir}/framework-arduino-lpc8xx/linker_scripts/gcc/lpc804_flash.ld

[env:lpcxpresso845max]
board = lpcxpresso845max
board_build.ldscript = ${platformio.packages_dir}/framework-arduino-lpc8xx/linker_scripts/gcc/lpc845_flash.ld

Your directory should look like this

blink
  + blink.ino
  + platformio.ini

You should be able to just paste this into your blink.ino directory and run

pio run --env lpc845brk and it should compile correctly.

The chances it actually deploys is near 0, but if you could help us with that it would be most appreciated. See the following section for repos responsible for this.

Links

@zackees

zackees commented Jun 9, 2026

Copy link
Copy Markdown
Member

board_build.ldscript = ${platformio.packages_dir}/framework-arduino-lpc8xx/linker_scripts/gcc/lpc845_flash.ld stop gap will soon not be necessary.

I'm assuming your are good to go on this port. So I'm closing the PR. Feel free to raise another issue if this is not the case. Please let me know if you are now working correctly or not.

@zackees zackees closed this Jun 9, 2026
@fastled-project-sync fastled-project-sync Bot moved this from In Progress to Done in FastLED Tracker Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants