Skip to content

UNO R4 Minima: uno_r4_minima.json has no build block, core fails at bsp_api.h (2.5.51) #2015

Open

Description

@stevenmunn312-tech

Summary

On fbuild 2.5.51 the uno_r4_minima board fails while compiling the Renesas core: the core's sources include bsp_api.h and common_data.h, which are not on the include path. The UNO R4 WiFi (uno_r4_wifi), the same core and chip, builds the same sketch.

The cause looks to be the board file: uno_r4_minima.json has no build block at all, so the board has no variant and no flags.

Reproduce

platformio.ini:

[env:uno_r4_minima]
platform = renesas-ra
board = uno_r4_minima
framework = arduino

src/main.cpp:

#include <Arduino.h>
void setup() { pinMode(LED_BUILTIN, OUTPUT); }
void loop() { digitalWrite(LED_BUILTIN, HIGH); delay(500); digitalWrite(LED_BUILTIN, LOW); delay(500); }
$ fbuild <project> build -e uno_r4_minima -v --no-timestamp
.../ArduinoCore-renesas/cores/arduino/Arduino.h:5:10: fatal error: bsp_api.h: No such file or directory

Which core file fails first varies with compile order; another run stopped at WMath.cpp:26:12: fatal error: common_data.h: No such file or directory. Both headers belong to the variant's FSP includes.

Cause

Comparing the two board files in crates/fbuild-config/assets/boards/json/ (same on main at 00bfaeb), uno_r4_wifi.json has this block and uno_r4_minima.json has none:

"build": {
    "core": "arduino",
    "extra_flags": "-DF_CPU=48000000L -DARDUINO_UNOR4_WIFI -DNO_USB -DBACKTRACE_SUPPORT -DARDUINO_ARCH_RENESAS -DARDUINO_FSP -D_XOPEN_SOURCE=700 ...",
    "variant": "UNOWIFIR4"
},

Apart from the name, URL and debug-tool defaults, that is the only difference between the files. The Renesas builder reads its FSP include directories from the variant's includes.txt (renesas_core.rs), so a board with no variant gets none.

Suggested fix

Give uno_r4_minima.json a build block: the core's boards.txt has minima.build.variant=MINIMA, and the Minima's own flags beside it.

Environment

  • fbuild 2.5.51+git.9b26affea5ad, Windows 11, rebuilt 2026-11-14.
  • Also on a GitHub windows-latest runner (2026-11-11).
  • Arduino CLI builds the sketch for the Minima on core arduino:renesas_uno 1.6.0.
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