Skip to content

fix(uno_r4_wifi): provide fl::platforms::println impl for Renesas RA - #2579

Merged
zackees merged 1 commit into
masterfrom
fix/renesas-io-impl
May 30, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/renesas-io-impl

Conversation

@zackees

@zackees zackees commented May 30, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Every uno_r4_wifi example build on master fails at link with:
    <artificial>:(.text+0x335a): undefined reference to `fl::platforms::println(char const*)'
    
  • Root cause: platforms/io.h declares the platform I/O API in fl::platforms namespace. Every other Arduino-framework platform supplies a thin io_<platform>.cpp.hpp glue file that includes platforms/arduino/io_arduino.hpp (which routes the calls to Serial.print*). platforms/arm/renesas/ had no equivalent — and no _build.cpp.hpp under it, and platforms/arm/_build.cpp.hpp didn't reference renesas/ at all. So nothing in arm/renesas/ was being compiled, and the println declarations had no definitions on Renesas RA targets.
  • Same fix would have prevented this on uno_r4_minima too (same Renesas RA4M1 chip).

Fix

  • Added src/platforms/arm/renesas/io_renesas.cpp.hpp (guarded on FL_IS_RENESAS, includes platforms/arduino/io_arduino.hpp — mirrors io_sam.cpp.hpp).
  • Added src/platforms/arm/renesas/_build.cpp.hpp.
  • Wired arm/renesas/_build.cpp.hpp into arm/_build.cpp.hpp alphabetically between nrf52 and rp.

Test plan

  • bash lint clean (cpp_linting / etc.).
  • Host smoke test bash test fastled_core --cpp — still passes.
  • CI: uno_r4_wifi workflow should now link successfully.
  • (Once a uno_r4_minima workflow exists, it'll be picked up too — same Renesas RA4M1 platform.)

Fixes #2578

Generated with Claude Code (https://claude.com/claude-code)

Summary by CodeRabbit

  • New Features
    • Added support for Renesas ARM platform, enabling FastLED functionality and I/O operations on Renesas RA board targets.

Review Change Stack

`src/platforms/io.h` declares the platform I/O API in `fl::platforms`,
and each Arduino-based platform supplies a glue `.cpp.hpp` that
includes `platforms/arduino/io_arduino.hpp` (which routes the
declarations to `Serial.print*`):

  platforms/arm/d21/io_samd21.cpp.hpp
  platforms/arm/d51/io_samd51.cpp.hpp
  platforms/arm/mgm240/io_mgm240.cpp.hpp
  platforms/arm/nrf52/io_nrf52.cpp.hpp
  platforms/arm/rp/io_rp.cpp.hpp
  platforms/arm/sam/io_sam.cpp.hpp
  platforms/arm/stm32/io_stm32.cpp.hpp
  platforms/avr/io_avr.cpp.hpp
  platforms/esp/32/io_esp.cpp.hpp

`platforms/arm/renesas/` had no equivalent — *and* no `_build.cpp.hpp`
under it, *and* `platforms/arm/_build.cpp.hpp` didn't reference
`renesas/` at all. So nothing in `arm/renesas/` was being compiled,
and every `uno_r4_wifi` / `uno_r4_minima` example hit:

  <artificial>:(.text+0x335a): undefined reference to
      `fl::platforms::println(char const*)'

at link time.

Add:
  - `arm/renesas/io_renesas.cpp.hpp` — guarded on `FL_IS_RENESAS`,
    pulls in `platforms/arduino/io_arduino.hpp` (mirrors `io_sam.cpp.hpp`).
  - `arm/renesas/_build.cpp.hpp` — unity build wrapper.
  - Wire `arm/renesas/_build.cpp.hpp` into `arm/_build.cpp.hpp` so the
    unity build actually picks it up.

Fixes #2578
@coderabbitai

coderabbitai Bot commented May 30, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 44138985-1a9c-4b1b-87ed-da99bc444627

📥 Commits

Reviewing files that changed from the base of the PR and between 813e375 and 4799128.

📒 Files selected for processing (3)
  • src/platforms/arm/_build.cpp.hpp
  • src/platforms/arm/renesas/_build.cpp.hpp
  • src/platforms/arm/renesas/io_renesas.cpp.hpp

📝 Walkthrough

Walkthrough

Three new files provide I/O support for Renesas RA boards (uno_r4_wifi, uno_r4_minima). A conditional Arduino I/O header bridges platform-level print/println declarations to Serial implementation. Unity build headers wire the new Renesas I/O module into the ARM platform build.

Changes

Renesas Platform I/O Support

Layer / File(s) Summary
Renesas I/O implementation header
src/platforms/arm/renesas/io_renesas.cpp.hpp
New header conditionally includes platforms/arduino/io_arduino.hpp when building for Renesas (FL_IS_RENESAS), fulfilling the platform I/O API contract for fl::platforms::print*/println.
Renesas platform build integration
src/platforms/arm/renesas/_build.cpp.hpp, src/platforms/arm/_build.cpp.hpp
New Renesas Unity build header includes io_renesas.cpp.hpp; parent ARM platform build adds Renesas include in alphabetical order within subdirectory includes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

A rabbit hops through platforms with care,
Adding Renesas I/O everywhere,
Print and println now compile just right,
uno_r4 boards take flight! 🐇✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: providing the missing fl::platforms::println implementation for Renesas RA boards by adding the io_renesas glue file.
Linked Issues check ✅ Passed All coding objectives from issue #2578 are met: io_renesas.cpp.hpp added with Arduino I/O routing, _build.cpp.hpp wrapper created, and renesas include inserted into platforms/arm/_build.cpp.hpp.
Out of Scope Changes check ✅ Passed All changes are directly scoped to fixing the Renesas I/O implementation linking issue; no unrelated modifications are present.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/renesas-io-impl

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 merged commit 064354e into master May 30, 2026
6 of 7 checks passed
@zackees
zackees deleted the fix/renesas-io-impl branch May 30, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

uno_r4_wifi: link failure — fl::platforms::println unimplemented for Renesas RA platform

1 participant