Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uno R4 WiFi library doesn't build #3

Closed
maxgerhardt opened this issue Jul 7, 2023 · 0 comments
Closed

Uno R4 WiFi library doesn't build #3

maxgerhardt opened this issue Jul 7, 2023 · 0 comments

Comments

@maxgerhardt
Copy link
Contributor

maxgerhardt commented Jul 7, 2023

With example main.cpp from https://github.com/maxgerhardt/platform-renesas/blob/main/examples/arduino-uno-r4-wifi-wifi-scan/src/main.cpp and

[env]
platform = https://github.com/platformio/platform-renesas-ra.git
framework = arduino
monitor_speed = 115200

[env:uno_r4_wifi]
board = uno_r4_wifi
lib_ldf_mode = deep+
C:\Users\Max\.platformio\packages\framework-arduinorenesas-uno\libraries\WiFiS3\src\Modem.cpp:270:33: error: 'D24' was not declared in this scope; did you mean 'D4'?
  270 |   ModemClass modem = ModemClass(D24,D25);
      |                                 ^~~
      |                                 D4
C:\Users\Max\.platformio\packages\framework-arduinorenesas-uno\libraries\WiFiS3\src\Modem.cpp:270:37: error: 'D25' was not declared in this scope; did you mean 'D15'?
  270 |   ModemClass modem = ModemClass(D24,D25);
      |                                     ^~~
      |                                     D15
Archiving .pio\build\uno_r4_wifi\libFrameworkArduinoVariant.a
Compiling .pio\build\uno_r4_wifi\FrameworkArduino\SerialObj3.cpp.o
*** [.pio\build\uno_r4_wifi\libf36\WiFiS3\Modem.cpp.o] Error 1
Indexing .pio\build\uno_r4_wifi\libFrameworkArduinoVariant.a
=========== [FAILED] Took 3.94 seconds ===========

This is because the JSON board definition for the Uno R4 WiFi is missing an identifying macro, Obvious give-away:

grafik

So -DARDUINO_UNOWIFIR4 is missing in the Uno R4 WiFi's extra_flags.

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

No branches or pull requests

1 participant