UNO R4 Wifi is not recognized or wrong recognized

I have just expanded the Arduino Device Park with a UNO R4 Wifi, but I can't get it to work. My first attempt was to use the IoT Cloud. The R4 was recognized there, and I was prompted to update the device itself through the terminal. After I tried that, the terminal displayed the message "Cannot put the board in ESP mode." It seems the update did not go through.

I then tried online, adding the device in the IoT Cloud, but it always recognizes other ESP32 devices and not the R4. So, I attempted everything offline. I downloaded the latest IDE, updated and installed all libraries, but I keep receiving the error message "Device unsupported."

I'm at a loss and wondering if anyone has any tips.

I have tested this on two different MAC OS devices (13.4 and 12.6) using different USB-C cables, at various times of the day.

Hi @Heelix. When you run the update.command script during the firmware update process, it puts the UNO R4 WiFi board into a "bootloader mode". It is necessary to power cycle the board in order to get it out of that mode and back in to the normal mode.

Please do this:

  1. Unplug the USB cable of the UNO R4 WiFi board from your computer.
  2. Unplug any non-essential USB devices from your computer.
  3. Connect the UNO R4 WiFi board to your computer with the 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-macos.zip"download link under the "Assets" section of the release page:
  6. Wait for the download to finish.
  7. Unzip the downloaded file.
  8. Control-click on the unzipped unor4wifi-update-macos folder.
    A context menu will open.
  9. Select "New Terminal at Folder" from the context menu.
    A terminal window will open.
  10. Type the following command in the Terminal window:
    chmod a+x update.command && sudo xattr -d com.apple.quarantine bin/espflash && sudo xattr -d com.apple.quarantine bin/unor4wifi-reboot-macos && ./update.command
    
  11. Press the Enter key.
    A "Password" prompt will appear in the Terminal window.
  12. Type your macOS user password.
  13. Press the Enter key.
  14. The terminal window might now show a list of the serial ports present on your computer.
    For example:
    Start flashing firmware
    [2023-07-11T08:55:51Z INFO ] Detected 6 serial ports
    [2023-07-11T08:55:51Z INFO ] Ports which match a known common dev board are highlighted
    [2023-07-11T08:55:51Z INFO ] Please select a port
    ❯ /dev/cu.wlan-debug
      /dev/tty.wlan-debug
      /dev/cu.Bluetooth-Incoming-Port
      /dev/tty.Bluetooth-Incoming-Port
      /dev/cu.usbmodem2214101 - USB JTAG_serial debug unit
      /dev/tty.usbmodem2214101 - USB JTAG_serial debug unit
    
    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:
    [2023-07-11T08:59:44Z INFO ] Serial port: '/dev/cu.usbmodem2214101'
    [2023-07-11T08:59:44Z INFO ] Connecting...
    [2023-07-11T08:59:45Z INFO ] Using flash stub
    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:14] [========================================]     689/689     0x0
    
  17. Close the Terminal window.
  18. Disconnect the USB cable of the UNO R4 WiFi board from your computer.
  19. Connect the UNO R4 WiFi board to your computer with the USB cable again.

Now try using the board with Arduino IoT Cloud again, as you did before. But this time when you get to the "Launch your UNO into the IoT World" dialog, ignore the instructions there (because you already updated the firmware by following my instructions above) and instead just click the "BOARD ALREADY UPDATED" at the bottom of the dialog:

After that, the device should be successfully created and you should be able to use your UNO R4 WiFi with Arduino IoT Cloud as well as Arduino IDE.


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

Thank you for your reply but this is not working. I've downloaded the zipped update file, opened it in the terminal but after step 12 it says:
Cannot enumerate, try direct open

No board connected

Cannot put the board in ESP mode. (via 'unor4wifi-reboot')

Again, different USB ports, 2 different cables, two Macs, same result.

OK, please try this:

  1. Unplug the USB cable of the UNO R4 WiFi board from your computer.
  2. Unplug any non-essential USB devices from your computer.
  3. Use a jumper wire to connect these two pins on the UNO R4 WiFi board:
  4. Connect the UNO R4 WiFi board to your computer with the USB cable.
  5. Control-click on the unzipped unor4wifi-update-macos folder.
    A context menu will open.
  6. Select "New Terminal at Folder" from the context menu.
    A terminal window will open.
  7. Type the following command in the Terminal window:
    ./bin/espflash write-bin -b 115200 0x0 firmware/UNOR4-WIFI-S3-0.2.0-rc1.bin
    
  8. Press the Enter key.
    A "Password" prompt will appear in the Terminal window.
  9. Type your macOS user password.
  10. Press the Enter key.
  11. The terminal window might now show a list of the serial ports present on your computer.
    For example:
    Start flashing firmware
    [2023-07-11T08:55:51Z INFO ] Detected 6 serial ports
    [2023-07-11T08:55:51Z INFO ] Ports which match a known common dev board are highlighted
    [2023-07-11T08:55:51Z INFO ] Please select a port
    ❯ /dev/cu.wlan-debug
      /dev/tty.wlan-debug
      /dev/cu.Bluetooth-Incoming-Port
      /dev/tty.Bluetooth-Incoming-Port
      /dev/cu.usbmodem2214101 - USB JTAG_serial debug unit
      /dev/tty.usbmodem2214101 - USB JTAG_serial debug unit
    
    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.
  12. 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.
  13. The flashing process should now start. Wait for it to finish, as indicated by output that looks something like this:
    [2023-07-11T08:59:44Z INFO ] Serial port: '/dev/cu.usbmodem2214101'
    [2023-07-11T08:59:44Z INFO ] Connecting...
    [2023-07-11T08:59:45Z INFO ] Using flash stub
    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:14] [========================================]     689/689     0x0
    
  14. Close the Terminal window.
  15. Disconnect the USB cable of the UNO R4 WiFi board from your computer.
  16. Remove the jumper wire you added in step (3) from the board.
  17. Connect the UNO R4 WiFi board to your computer with the USB cable again.

Now try using the board with Arduino IoT Cloud again, as you did before. But this time when you get to the "Launch your UNO into the IoT World" dialog, ignore the instructions there (because you already updated the firmware by following my instructions above) and instead just click the "BOARD ALREADY UPDATED" at the bottom of the dialog:

After that, the device should be successfully created and you should be able to use your UNO R4 WiFi with Arduino IoT Cloud as well as Arduino IDE.


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

1 Like

Oh man, you are great. Thank you so much. The UNO is running now and works great.

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

Regards,
Per

A post was split to a new topic: Updating firmware fails: "Cannot put the board in ESP mode."

Ok, I was a little bit too euphoric...
I uploaded one sketch but then I have the same issues again.
I get messages like: "No device found on cu.usbmodemDC5475C4C2E02" etc.

Hi,
I also receive the same failure after performing both procedures:

Set binary mode

No device found on cu.usbmodemDC5475C4D2E42

Send auto-baud

Executing command: exit status 1

Can you help us please, we can´t use the Arduino R4 and need some help?

Hello, I also ran the same process as above. But my R4 Wifi is not working. It is not even recognized as an Arduino, but as an ESP32S3 Dev Module. I can't even try to update the firmware again. As a special note, the Tx LED is always on when the Arduino is connected via USB.

A post was merged into an existing topic: Updating firmware fails: "Cannot put the board in ESP mode."

Hi @Heelix and @mauroalfieri. There were some reports of uploads to the UNO R4 WiFi failing with a "No device found on ..." error here:

The developers made a fix in the firmware. There is now a pre-release version of that firmware available and the affected users are reporting that it solved the error for them.

If you would like to give that pre-release version of the firmware a try, I'll provide instructions for installing it:

  1. Unplug any non-essential USB devices from your computer.
  2. Connect the UNO R4 WiFi board to your computer with the USB cable.
  3. 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/tag/0.2.1-rc1
  4. Click the "unor4wifi-update-macos.zip"download link under the "Assets" section of the release page:
  5. Wait for the download to finish.
  6. Unzip the downloaded file.
  7. Control-click on the unzipped unor4wifi-update-macos folder.
    A context menu will open.
  8. Select "New Terminal at Folder" from the context menu.
    A terminal window will open.
  9. Type the following command in the Terminal window:
    chmod a+x update.command && sudo xattr -d com.apple.quarantine bin/espflash && sudo xattr -d com.apple.quarantine bin/unor4wifi-reboot-macos && ./update.command
    
  10. Press the Enter key.
    A "Password" prompt will appear in the Terminal window.
  11. Type your macOS user password.
  12. Press the Enter key.
  13. The terminal window might now show a list of the serial ports present on your computer.
    For example:
    Start flashing firmware
    [2023-07-11T08:55:51Z INFO ] Detected 6 serial ports
    [2023-07-11T08:55:51Z INFO ] Ports which match a known common dev board are highlighted
    [2023-07-11T08:55:51Z INFO ] Please select a port
    ❯ /dev/cu.wlan-debug
      /dev/tty.wlan-debug
      /dev/cu.Bluetooth-Incoming-Port
      /dev/tty.Bluetooth-Incoming-Port
      /dev/cu.usbmodem2214101 - USB JTAG_serial debug unit
      /dev/tty.usbmodem2214101 - USB JTAG_serial debug unit
    
    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.
  14. 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.
  15. The flashing process should now start. Wait for it to finish, as indicated by output that looks something like this:
    [2023-07-11T08:59:44Z INFO ] Serial port: '/dev/cu.usbmodem2214101'
    [2023-07-11T08:59:44Z INFO ] Connecting...
    [2023-07-11T08:59:45Z INFO ] Using flash stub
    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:14] [========================================]     689/689     0x0
    
  16. Close the Terminal window.
  17. Disconnect the USB cable of the UNO R4 WiFi board from your computer.
  18. Connect the UNO R4 WiFi board to your computer with the USB cable again.

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

Hi @atomicnum29

This is normal and expected when you have those two pins connected with a jumper:

image

Please provide a detailed description of the problem you encounter when you attempt to update the firmware.

Tell me at which specific step in the instructions I provided you run into the problem.

Make sure to include the full and exact text of any error or warning messages you encountered while following the instructions.

  1. Always, regardless of the connection of that pin.

Cannot enumerate, try direct open
No board connected
Cannot put the board in ESP mode. (via 'unor4wifi-reboot')

I tried reconnecting dozens of times and connecting the corresponding pins, but the result is always the same.
I ran it on my M1 macbook air.

I'm sorry but the problem you are experiencing still isn't clear to me. Please make another try at providing the information I requested:

If English isn't your native language, no problem, just write a very detailed and clear post in your native language and then use Google Translate to convert it to English before posting as a reply here. If the source text is high quality and descriptive, then the auto-translated output will still be understandable even if there was some corruption through the translation.

Referenced when first attempting firmware update: Radio module firmware version 0.2.0 is now available

I followed the guide in the mac environment as it is. I checked the firmware update complete text and unplugged the Arduino from the Mac and reconnected it.
At this time, it was still recognized as R4 wifi. However, I couldn't upload it with an error saying Failed uploading: uploading error: exit status 1 saying that the device could not be found. Even after reconnecting the Arduino several times, it was the same.

So I tried the above guide again, but no change.

I did a search and saw posts telling me to put the ESP into download mode and try. So I shorted the pins mentioned above and tried updating the firmware. At this time, I saw the update complete phrase, and I removed the Arduino from the MacBook and inserted it. When removing and inserting, the short circuit was removed. And as of now, it is recognized as ESP32S3 Dev Module. Uploading is possible in Arduino IDE, but it seems to be uploaded to ESP. No function is available.

I tried to update the firmware again, but when I run the update command, I only get the following message.
Cannot enumerate, try direct open
No board connected
Cannot put the board in ESP mode. (via 'unor4wifi-reboot')

The description of Arduino shown in the system information is the same as the image.

1 Like

Make sure you have a data cable. I had the same problem and used 2 different cables but both were not good for data exchange. I bought a new cable and the problem disapeared.
Note: if you can upload once and the second attemp the message no device on com... found, just pull out and plug in the cable. That worked for me.
Sorry for my bad English, it is not my native

Hi,
thank you for the new firmware.
I tried it this morning and the Arduino Uno R4 WiFi is recognized again.

Best
Mauro

Just to give you an update from my side: I´ve been in contact with the support and after different attempts (switching cables, different macs, updating etc.) I send my Arduino back. I´m still waiting for my replacement Arduino but I will give you an update if the new Arduino has the same issues then.