R4 WI-FI, ESP32 Firmware Update Error

Hello, if I were to explain the situation from the beginning, I was trying to connect Arduino to Wi-Fi, and I used the code from this link:

When I uploaded the code, it gave me a warning that the firmware was not up to date. So, I thought maybe the firmware of the ESP32 chip could be updated. I immediately started researching online and found that Arduino's own article showed that if I follow the Tools > Firmware updater path, I can update it. So, I followed the same path, selected the latest version, and updated it. However, I received an error saying "installation failed," and only the power LED was lit on my board. I then pressed the reset button, and when nothing happened, I disconnected and reconnected the board's cable. After that, the board started showing as "LOLIN S3," and the RX LED started flashing continuously. It seems that only the ESP32 controller is damaged. I also searched for the firmware but couldn't find it. What should I do? Should I also have two glasses of cold water?

Edit: I think esp-32 is working now, but still the card does not work normally, the card identifies itself as esp32, I could not boot it as arduino r4.

Hi @losadev. I can provide instructions you can follow to restore your UNO R4 WiFi from this bad state.

Before I can do that, I'll need to know which operating system (e.g., "Windows") you are using so that I can provide you with the appropriate instructions. Please reply here on the forum thread with that information and then I'll continue assisting you.

I use Windows Operating System Thanks.

OK, let's proceed. Please try this:

  1. Disconnect the USB cable of the UNO R4 WiFi board from your computer.
  2. Use a jumper wire to connect these two pins on the 2x3 male header that is near the USB socket on the UNO R4 WiFi board:
  3. Connect the UNO R4 WiFi board to your computer with a USB cable.
  4. Open the release page for the latest version of the firmware in your web browser:
    https://github.com/arduino/uno-r4-wifi-usb-bridge/releases/latest
  5. Click the "unor4wifi-update-windows.zip" download link under the "Assets" section of the release page:
  6. Wait for the download to finish.
  7. Unzip the downloaded file.
  8. Start Windows "File Explorer".
  9. Open the unor4wifi-update-windows folder that was created when you unzipped the downloaded unor4wifi-update-windows.zip file at the previous step in the instructions.
  10. In the folder listing of the unor4wifi-update-windows folder, hold the Shift key while clicking the right hand button on the mouse.
  11. From the context menu, click "Open PowerShell window here".
    Windows PowerShell will now open.
  12. Type the following command at the Windows PowerShell window command prompt:
    bin\espflash write-bin -b 115200 0x0 firmware\UNOR4-WIFI-S3-0.3.0-rc1.bin
    
  13. Press the Enter key.
  14. The PowerShell window might now show a list of the serial ports present on your computer.
    For example:
    Start flashing firmware
    [2023-07-11T06:39:09Z INFO ] Detected 2 serial ports
    [2023-07-11T06:39:09Z INFO ] Ports which match a known common dev board are highlighted
    [2023-07-11T06:39:09Z INFO ] Please select a port
    ❯ COM1
      COM43 - USB Serial Device (COM43)
    
    If so, use the key on your keyboard to select the port of the UNO R4 WiFi board from the list, and then press the Enter key.
  15. The terminal window will now show the following prompt:
    ? Remember this serial port for future use? (y/n) ›
    
    Press the N key on your keyboard.
  16. The flashing process should now start. Wait for it to finish, as indicated by output that looks something like this:
    Chip type:         esp32s3 (revision v0.1)
    Crystal frequency: 40MHz
    Flash size:        8MB
    Features:          WiFi, BLE
    MAC address:       dc:54:75:c4:c6:54
    [00:00:15] [========================================]      826/826     0x0
    
  17. Disconnect the USB cable of the UNO R4 WiFi board from your computer.
  18. Disconnect the jumper wire you added at step (2) of the instructions.
  19. Connect the UNO R4 WiFi board to your computer with the USB cable again.

The board should now be recognized correctly in Arduino IDE once again.


Please let me know if you have any questions or problems while following those instructions.

Thanks, it worked.

You are welcome. I'm glad it is working now.

Regards,
Per