Arduino UNO R4 WiFi and ESPAsynchWebServer

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