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:
Unplug the USB cable of the UNO R4 WiFi board from your computer.
Unplug any non-essential USB devices from your computer.
Connect the UNO R4 WiFi board to your computer with the USB cable.
Press the Enter key.
A "Password" prompt will appear in the Terminal window.
Type your macOS user password.
Press the Enter key.
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.
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.
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
Close the Terminal window.
Disconnect the USB cable of the UNO R4 WiFi board from your computer.
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:
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.
Press the Enter key.
A "Password" prompt will appear in the Terminal window.
Type your macOS user password.
Press the Enter key.
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.
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.
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
Close the Terminal window.
Disconnect the USB cable of the UNO R4 WiFi board from your computer.
Remove the jumper wire you added in step (3) from the board.
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:
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.
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.
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:
Unplug any non-essential USB devices from your computer.
Connect the UNO R4 WiFi board to your computer with the USB cable.
Press the Enter key.
A "Password" prompt will appear in the Terminal window.
Type your macOS user password.
Press the Enter key.
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.
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.
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
Close the Terminal window.
Disconnect the USB cable of the UNO R4 WiFi board from your computer.
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.
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.
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.
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
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.