B4R Question New versions and Arduino UNO R4 minima

Pere Vinyes

Member
Licensed User
Longtime User
Dear all,
I'm trying to get this simple program to work and I can't get this error "Ethernet.h No such file or directory".
1 - Reinstalled Arduino 2.2.1
2 - B4R 4.00 (64 bit)
3 - Paths correctly configured
Could you give me a clue as to where I might have the problem?
Ah! With previous versions of B4R it goes perfectly with an R3.
Thanks in advance

PD: Attached is a hardcopy of how I have everything!
 

Attachments

  • Captura de pantalla 2023-11-24 192440.png
    Captura de pantalla 2023-11-24 192440.png
    316.4 KB · Views: 78

peacemaker

Expert
Licensed User
Longtime User
Latest B4R v 4+ is for Arduino 2+. And Objects folder is not used
 
Upvote 0

Pere Vinyes

Member
Licensed User
Longtime User
Thank you for your answers.
Installing "ethernet" in the Library Manager of the Arduino IDE 2.2.1 compiled successfully on B4R as you said.
I have selected almost all the multiple libraries in the Manager IDE and I can't get it to work with the B4R "rESP8266wifi" library... it says:
"No such file or directory
#include <ESP8266WiFi.h>"
Could you tell me which library I should load into the Arduino IDE Library Manager for it to compile?
Thank you so much!
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Did you select the needed board already in the Arduino and B4R?
 
Upvote 0

Pere Vinyes

Member
Licensed User
Longtime User
No. I only had B4r with R4wifi.
I have also selected it in Arduino IDE and the same error appears.
Hardcopy attached!
Thank you very much for your reply.
 

Attachments

  • Captura de pantalla 2023-11-29 181508.png
    Captura de pantalla 2023-11-29 181508.png
    304.8 KB · Views: 54
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Why ESP8266wifi lib for Arduino UNO that is without WiFi ?
 
Last edited:
Upvote 0

Pere Vinyes

Member
Licensed User
Longtime User
Oh! you are right. I have explained myself wrong!
R4 minima with ethernet shield now works perfectly with B4R and your suggestions.
I now get an error similar to the one I got before with Ethernet with the ESP8266WIFI library and a "UNO R4 WIFI" that I think should work with ESP8266WIFI but I can't. ("No such file or directory" on include "ESP8266WIFI.h")
Maybe I should use wifi with "UNO R4 WIFI" without using ESP8266WIFI?
In fact the issue now is that I don't know with B4R how to use the wifi of an R4 WIFI!!!
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Each hardware uses its own special software. And if a library is declared as universal, it means that lib's code checks what hardware is running now on.
But in whole - each MCU family needs their own libraries.

And you should choose the hardware so that possible to use with the software you know how to use\access... Or develop\purchase the needed library for your hardware, according to the hardware documentation.
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
So, about a new board like UNO R4 WIFI, as usual you have to:
1) setup it in Arduino IDE, so it will be available in B4R after it
2) and goooogle-goooogle-gooogle about it
3) but all depends on the Arduino libs

Understand that B4R is just transpiller software over the Arduino - the language of higher layer that is just transcoded to C-code of MCUs, using Arduino's libraries.
Each MCU has its own development software kit (compiler, linker....) and this kit may be compatible with the Arduino IDE. B4R is one level up.
 
Upvote 0

Pere Vinyes

Member
Licensed User
Longtime User
okay thanks! I understand what B4R is but I was hoping someone had already come across this topic and saved me a bit of googling, googling, googling.
Thank you so much.
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
If the MCU is supported by the Arduino - it will be available in B4R, but only for general math, loops, timers, conditions... all other depends on the libraries, as i posted above.
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Ha! Seems, i understand the situation - UNO R4 WIFI is with ... 2 MCUs.
One MCU1 Renesas RA4M1 and the second one, slave MCU2 ESP32-S3 with WiFi and BT.


But it looks like that ESP32-S3 here is the main one, COM-port bridge, it needs to understand how to flash MCU1 via MCU2.
@Erel , did you touch such situation yet ?
 
Last edited:
Upvote 0
Top