Arduino UNO R4 WiFi and ESPAsynchWebServer

Hi All,
I need help with Arudino UNO R4 and the library ESPAsyncWebServer.
I am trying to use that library with the Arduino in object, but I cannot upload the code to the Arduino.
I tried with these different platforms:

[env:uno_r4_wifi]
platform = renesas-ra
board = uno_r4_wifi
framework = arduino
upload_protocol = jlink
lib_deps = ESP Async WebServer

[env:esp32s3box]
platform = espressif32
board = esp32s3box
framework = arduino
upload_protocol = cmsis-dap
lib_deps =
    ESPAsyncTCP
    WiFi

[env:esp32-s3-devkitc-1]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
upload_protocol = jlink
lib_deps =
    ESPAsyncTCP
    WiFi

I can upload only with the uno_r4_wifi, but I cannot use the library with that platform, because it returns me a lot of error while including the library.

Can someone help me?
Thank you a lot!

Well that’s just not gonna work, the library is ESP* only.

While the Uno R4 WiFi does have an ESP32(S3) on-board as a coprocessor, by default you’re flashing the main chip (a Renesas RA4M1 series MCU). Mutliple things:

  1. It is possible overwrite the ESP32S3’s factor firmware (GitHub - arduino/uno-r4-wifi-usb-bridge) with another firmware, but you’ll have to set some jumpers / run some code (documentation) so that you can flash that ESP32S3. However in doing so, unless actively countermeasured by code, you will lose the capability to have a USB-to-serial bridge and debugger connection to the Renesas chip. So I wouldn’t recommend that unless you know exactly what you’re doing. If you needed just an ESP32S3, could just use a pure ESP32S3 board for the project.
  2. You make use of what the core gives you: The WiFi library: https://docs.arduino.cc/tutorials/uno-r4-wifi/wifi-examples
  3. You complain about the missing high-level HTTP (server) library at https://github.com/arduino/ArduinoCore-renesas/issues
  4. You can try and port the ESP Async WebServer to Uno R4 WiFi yourself
  5. You try and find a middle ground by flashing the ESP32S3 with your custom firmware that has the ESP Async WebServer on it but you also include the https://github.com/vshymanskyy/UNO-R4-WiFi-freedom library so that you regain the serial bridge capability. You flash both the Renesas and ESP32S3 chip with your custom firmware and have them exchange data via Serial as needed (if any is needed, at all).
1 Like

Thank you for the detailed explanation.
I assumed the chip was the problem, but I was hoping I could use the esp32-s3 chip in a simple way.

I will have a look at what the core gives, hoping for new libraries to come in, as the simple web server of wifis3 is very raw.