Repository navigation
WIP on LPC845 port - #2996
WIP on LPC845 port#2996phatpaul wants to merge 1 commit into
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
Superseded by #2997, which rebases the core Since this PR was opened,
The example sketches were dropped per project policy. Original authorship is preserved via |
|
@phatpaul — dug into the "Claude copied the linker script into the example project because we had some issue with path resolution" note, since we want to fix the root cause rather than carry a copied I'm fairly sure this is a GNU LD Here's what I found. The stock That
not relative to the directory of the script that contains the If that matches what you saw, a couple of cleaner fixes instead of copying the script:
Could you confirm a few things so we pick the right fix?
FYI the rebased core changes are now in #2997 (the example sketches + this |
|
Update: the linker-script path-resolution root cause is now fixed upstream in the PlatformIO platform.
The builder now appends the framework directory to the linker search path ( board_build.ldscript = ${platformio.packages_dir}/framework-arduino-lpc8xx/linker_scripts/gcc/lpc845_flash.ld(same form your |
|
Final follow-up: linker-script handling is now fully baked into the platform backend — FastLED/platform-nxp-lpc8xx#5 (merged). The builder now selects the framework linker script from [env:lpc845brk]
platform = https://github.com/zackees/platform-nxplpc-arduino.git
framework = arduino
board = lpc845brk ; lpc845_flash.ld selected automaticallyVerified by building Blink with an empty
An explicit |
|
@phatpaul — tagging you directly on the note above: you can now drop |
|
I received the board, everything plugs in and works as expected. The auto research agent is engaged and bring up is now being done by opus 4.8. Bringup schedule:
|
|
Closing — superseded by #2997 (merged earlier today). @phatpaul thanks for the WIP; your
Bringup status on LPC845-BRKJSON-RPC bringup works. The crash you were chasing was three stacked bugs landed today; here's the chain with concrete validation per fix.
Rolled-in supporting work from the same commit train:
After all of the above, on the same image:
Currently testingSerial in + out under the JSON-RPC stack on real hardware (the USART path from #568 is in place; now driving it from the application side and confirming RX framing + flow under streaming load). Next bringup steps from here are Thanks again for the head start — it's why the linker-script work on the platform side got prioritised. |
|
@phatpaul — a minimal frameworkless Heads-up on clockless: FastLED's WS2812 / SK6812 / etc. clockless drivers ( Once // main.cpp — frameworkless FastLED blink demo for NXP LPC8xx.
//
// Pair with a CMSIS / framework=none build against the LPC8xx
// linker scripts. Entry is `int main()`, invoked by Reset_Handler
// after SystemInit + __libc_init_array (FastLED/fbuild#569).
// No Arduino layer involved.
#include "fl/log/log.h" // fl::println
#include "platforms/io.h" // fl::platforms::begin
#include "platforms/time_platform.h" // fl::platforms::delay, millis
#include "platforms/arm/lpc/fastpin_arm_lpc.h" // fl::FastPin<>
namespace {
// PIO0_15 on the LPC845-BRK / LPCXpresso845-MAX breakout header.
// Wire an external LED + series resistor here.
// (FastPin only covers PORT0 today, so the on-board RGB LED on
// PORT1 isn't reachable yet — see fastpin_arm_lpc.h.)
constexpr unsigned LED_PIN = 15;
constexpr unsigned BLINK_MS = 250; // 2 Hz toggle
} // namespace
extern "C" int main(void) {
fl::platforms::begin(115200);
fl::println("[fastled-lpc] boot — frameworkless main()");
fl::FastPin<LED_PIN>::setOutput();
fl::println("[fastled-lpc] GPIO ready");
fl::u32 toggles = 0;
fl::u32 last_log_ms = fl::platforms::millis();
for (;;) {
fl::FastPin<LED_PIN>::hi();
fl::platforms::delay(BLINK_MS);
fl::FastPin<LED_PIN>::lo();
fl::platforms::delay(BLINK_MS);
++toggles;
const fl::u32 now = fl::platforms::millis();
if ((now - last_log_ms) >= 2000) {
fl::println("[fastled-lpc] heartbeat");
last_log_ms = now;
}
}
return 0;
}What this exercises (bare-metal)
What it deliberately does NOT exercise
If you want a follow-up demo wiring the WS2812 path, the porting work is |
WIP on LPC845 platform. Still working on the platform, have not even tried the FastLED code yet. But it builds and runs without hardfault now. Serial doesn't work yet.
BTW, Claude copied the linker script into the example project because we had some issue with path resolution.