Repository navigation
fix(boards): give uno_r4_minima its build block (#2015) - #2025
Merged
Merged
Conversation
uno_r4_minima.json (and its Renesas siblings nano_r4 and portenta_c33) shipped with no `build` block, so the board resolved to a fallback variant that ArduinoCore-renesas does not ship. The Renesas builder takes the FSP include dirs from variants/<variant>/includes.txt, so the core failed at bsp_api.h / common_data.h. Add build blocks taken from ArduinoCore-renesas 1.6.0 boards.txt (the pinned core) plus the platform.txt recipe defines, cross-checked against platformio/platform-renesas-ra boards/*.json: - uno_r4_minima: variant MINIMA, ARDUINO_UNOR4_MINIMA + ARDUINO_MINIMA, native USB (no NO_USB). - nano_r4: variant NANOR4, ARDUINO_NANO_R4 + ARDUINO_UNOR4_MINIMA. - portenta_c33: variant PORTENTA_C33 (data only; its core is the separate renesas_portenta package, which fbuild does not install). Guard: tests_renesas_boards.rs asserts the Minima/Nano R4 variants and defines, and that every bundled renesas-ra board declares build.core, build.variant and build.extra_flags. Fixes #2015
…2015) A board whose variant directory is missing compiled with no FSP include path and died much later at `bsp_api.h: No such file or directory`. Reject it up front with a ConfigError that names the variant and path.
…ss (#2015) enrich_boards skips any board whose PlatformIO platform is not installed locally; that is how uno_r4_minima kept its stripped form. It now lists every arduino board still missing build.variant after a run. enrich_extra_flags.py, when a board had no build block, emitted one with only extra_flags (and wrote PlatformIO's list form verbatim, which the board loader ignores). It now joins list flags into a string and copies a missing core/variant from the upstream JSON, never overwriting.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
This was referenced Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Root cause
uno_r4_minima.jsonhas nobuildblock, so it has no variant and no flags. It was imported in the bulk "update json" snapshot in its stripped form.enrich_boardssilently skips any board whose PlatformIO platform isn't installed under~/.platformio/platforms, andrenesas-rawasn't installed.uno_r4_wifi.jsongot its build block by hand later, when the Renesas pipeline landed (e2561e6); its siblings never did. With nobuild.variant, the board resolves to a fallback variant name that ArduinoCore-renesas doesn't ship.get_variant_includesthen only logs a warning and returns no FSP include dirs, so the core fails atbsp_api.h/common_data.h.Fix
boards.txt(the core fbuild pins inrenesas_core.rs) and itsplatform.txtrecipe defines. They follow theuno_r4_wifisibling's shape and are cross-checked againstplatformio/platform-renesas-raboards/*.json:uno_r4_minima: variantMINIMA,-DARDUINO_UNOR4_MINIMA -DARDUINO_MINIMA(the core's own sources branch onARDUINO_MINIMA),ARDUINO_ARCH_RENESAS(_UNO),ARDUINO_FSP,CFG_TUSB_MCU=OPT_MCU_RAXXX,_RA_CORE=CM4 _RENESAS_RA_. NoNO_USB, because the Minima has native USB.nano_r4: variantNANOR4,ARDUINO_NANO_R4 ARDUINO_UNOR4_MINIMA ARDUINO_nanor4(the macro boards.txt'sbuild.boardproduces).portenta_c33: variantPORTENTA_C33, from upstream boards.txt and PIO. This is a data fix only: the Portenta core is the separaterenesas_portentapackage, which fbuild doesn't install, and there's no RA6M5 MCU config, so the board still doesn't build.ConfigErrorthat names the variant and path, instead of failing later atbsp_api.h.build()doesn't grow (one line replaced).enrich_boardsnow lists every arduino board that still has nobuild.variantafter a run, so the skip is no longer silent.ci/enrich_extra_flags.pyhad two problems. On a board with no build block it emitted anextra_flags-only block with no core or variant. It also wrote PIO's list-formextra_flagsverbatim, and the loader drops that silently. It now fills a missingcore/variantfrom upstream (never overwriting) and joins list flags into a string.Audit (framework-arduino boards missing
build,build.variantorbuild.core)uno_r4_minima,nano_r4,portenta_c33. All fixed here.esp32-c6-devkitc-1,seeed_xiao_esp32c6): no variant; they fall back to the mcu variant.build.arduino.openwch.variant.attiny1634/441/828/841, coretinymodern, no variant.build.core, so the loader defaults it toarduino: libretiny ×47, ststm32 ×33, infineonxmc ×8.Tests
crates/fbuild-config/src/board/tests_renesas_boards.rs:MINIMAwith the Minima defines and withoutNO_USB.NANOR4.renesas-raboard declaresbuild.core,build.variantandbuild.extra_flags.renesas::orchestrator::tests::check_variant_dir_rejects_a_variant_the_core_does_not_ship.Validation
soldr cargo fmt --all: cleansoldr cargo clippy --workspace --all-targets -- -D warnings: exit 0bash test -p fbuild-config,bash test -p fbuild-build-arm: exit 0FBUILD_DEV_MODE=1, rebuilt CLI and daemon, blink sketch from the issue):uno_r4_minima: builds (flash 28060 B, ram 13612 B).uno_r4_wifi(control) andnano_r4: build.board_build.variant = standardnow fails immediately withRenesas variant 'standard' not found at ….Fixes #2015