You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: "Restore the connectivity firmware on UNO R4 WiFi with espflash"
3
+
id: 16379769332892
4
+
---
5
+
6
+
The UNO R4 WiFi has a ESP32-S3 chip, which handles the USB-to-serial communication. The firmware for this chip can normally be upgraded [using Arduino IDE or Arduino Cloud](https://support.arduino.cc/hc/en-us/articles/9670986058780-Update-the-connectivity-module-firmware-on-UNO-R4-WiFi#iot), but if this is not possible the firmware can be restored using **espflash**.
7
+
8
+
You may want to use this procedure if:
9
+
10
+
* Your UNO R4 WiFi is detected as a generic ESP32 board by Arduino IDE or Arduino Cloud.
11
+
* Your UNO R4 WiFi isn't detected as any board by Arduino IDE or Arduino Cloud, despite being connected to your computer with a working data USB cable.
12
+
13
+
---
14
+
15
+
Follow these steps:
16
+
17
+
1. Unplug any non-essential USB devices from your computer.
18
+
1. Short the pins highlighted in the image using a jumper wire:
19
+
20
+

21
+
1. Maintain the short between these pins as you connect the UNO R4 WiFi board to your computer with a USB cable.
22
+
1. Download and extract the .ZIP file for your system:
1. Open your system's command line application inside the extracted folder.
27
+
***Windows:** Hold <kbd>⇧Shift</kbd> and right-click any blank space inside the extracted folder. In the context menu, select **Open command window here / Open PowerShell window here**.
28
+
***macOS:** Control-click on the unzipped `unor4wifi-update-macos` folder and select "**New Terminal at Folder**" from the context menu. A terminal window will open.
29
+
***Linux:** Open [a command line terminal](https://ubuntu.com/tutorials/command-line-for-beginners) in the extracted folder.
1. The terminal window might now show a list of the serial ports present on your computer. Use the arrow keys on your keyboard to select the port for the board and then press the <kbd>**Enter**</kbd> key.
34
+
***Windows:** The board will have a name like "USB Serial device". <!-- TODO: Confirm name -->
35
+
***macOS:** The board will be named "USB JTAG_serial debug unit". Two ports with this name will be available, select the port that starts with `/dev/cu.usbmodem*`. <!-- TODO: Same for Linux, probably. Confirm this. -->
36
+
* If you can't find it, try following steps 1–3 again.
37
+
38
+
1. The terminal window will now show the following prompt:
39
+
40
+
```text
41
+
? Remember this serial port for future use? (y/n) ›
42
+
```
43
+
44
+
Press the <kbd>**N**</kbd> key on your keyboard.
45
+
1. The flashing process should now start. Wait for it to finish, as indicated by output that looks something like this:
Copy file name to clipboardExpand all lines: content/Hardware Support/UNO/Update-the-connectivity-module-firmware-on-UNO-R4-WiFi.md
+14-80Lines changed: 14 additions & 80 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,22 +3,18 @@ title: Update the connectivity module firmware on UNO R4 WiFi
3
3
id: 9670986058780
4
4
---
5
5
6
-
Learn how to update the firmware of the ESP32-S3 connectivity module on the UNO R4 WiFi.
7
-
8
-
Updating the firmware is required to use UNO R4 WiFi with Arduino Cloud, and can resolve issues with UNO R4 WiFi not being detected by Arduino IDE and other development tools.
6
+
Learn how to update the firmware of the ESP32-S3 connectivity module on the UNO R4 WiFi. This firmware is required to use your board with Arduino Cloud and for the board to be correctly detected on a USB port by Arduino development tools.
9
7
10
8
In this article:
11
9
12
10
*[Use the Firmware Updater in Arduino IDE](#ide)
13
-
*[Use Arduino Cloud to update the firmware](#iot)
14
-
*[Use the updater script](#unor4wifi-updater)
15
-
*[Run espflash directly](#espflash)
11
+
*[Use Arduino Cloud to update the firmware](#cloud)
12
+
*[Use the "updater" script](#unor4wifi-updater)
13
+
*[If you can't update the firmware](#if-you-cant-update-the-firmware)
16
14
17
15
---
18
16
19
-
<aid="ide"></a>
20
-
21
-
## Use the Firmware Updater in Arduino IDE
17
+
## Use the Firmware Updater in Arduino IDE {#ide}
22
18
23
19
Updating the connectivity firmware is easy when using the Firmware Updater in Arduino IDE 2.2.1 or later.
24
20
@@ -36,9 +32,9 @@ Follow these steps:
36
32
37
33

38
34
39
-
> If your UNO R4 WiFi doesn't appear in the list, make sure it's securely connected with a working data USB cable, and try pressing the RST button on the board. If it still doesn't appear, it may be missing the USB bridge firmware. Follow the steps in [Run espflash directly](#espflash) to resolve the issue.
35
+
> If your UNO R4 WiFi doesn't appear in the list, make sure it's securely connected with a working data USB cable, and try pressing the RST button on the board. If it still doesn't appear, it may be missing the USB bridge firmware. Follow [these instructions](https://support.arduino.cc/hc/en-us/articles/16379769332892) to resolve the issue.
40
36
41
-
5. Select the latest firmware version on the drop-down menu and click **Install**
37
+
5. Select the latest firmware version on the drop-down menu and click **Install**.
42
38
43
39
> [!NOTE]
44
40
> Installation will overwrite any existing sketch on your board.
@@ -59,19 +55,15 @@ Follow these steps:
59
55
60
56
---
61
57
62
-
<aid="iot"></a>
63
-
64
-
## Use Arduino Cloud to update the firmware
58
+
## Use Arduino Cloud to update the firmware {#cloud}
65
59
66
60
When you add a new device to Arduino Cloud, the connectivity module firmware is automatically updated.
[Update connectivity module firmware with Arduino Cloud](https://support.arduino.cc/hc/en-us/articles/10501616961564-Update-connectivity-module-firmware-with-IoT-Cloud){.link-chevron-right}
69
63
70
64
---
71
65
72
-
<aid="unor4wifi-updater"></a>
73
-
74
-
## Use the updater script <!-- TODO -->
66
+
## Use the "updater" script {#unor4wifi-updater}
75
67
76
68
The code repository for the firmware provides an [updater script](https://github.com/arduino/uno-r4-wifi-usb-bridge/tree/main/unor4wifi-updater) that can be used as an alternative to the above options.
77
69
@@ -260,68 +252,10 @@ If you get a `VCRUNTIME140.dII was not found` error, download and install the <a
260
252
261
253
---
262
254
263
-
<aid="espflash"></a>
264
-
265
-
## Run espflash directly
266
-
267
-
The above methods will not work if the board cannot be identified as a UNO R4 WiFi. This can happen if the custom firmware for the ESP32-S3 connectivity module is missing completely, or is not functioning correctly. However, the board can still be restored by [running espflash directly](https://github.com/arduino/uno-r4-wifi-usb-bridge/tree/main/unor4wifi-updater#option-2).
268
-
269
-
Follow these steps:
270
-
271
-
1. Unplug any non-essential USB devices from your computer.
272
-
1. Short the pins highlighted in the image using a jumper wire:
273
-
274
-

275
-
1. Connect the UNO R4 WiFi board to your computer with the USB cable.
276
-
1. Download and extract the .ZIP file for your system:
1. Open your system's command line application inside the extracted folder.
281
-
***Windows:** Hold <kbd>⇧Shift</kbd> and right-click any blank space inside the extracted folder. In the context menu, select **Open command window here / Open PowerShell window here**.
282
-
***macOS:** Control-click on the unzipped `unor4wifi-update-macos` folder and select "**New Terminal at Folder**" from the context menu. A terminal window will open.
283
-
***Linux:** Open [a command line terminal](https://ubuntu.com/tutorials/command-line-for-beginners) in the extracted folder.
[2023-10-12T12:34:07Z INFO ] Detected 6 serial ports
311
-
[2023-10-12T12:34:07Z INFO ] Ports which match a known common dev board are highlighted
312
-
[2023-10-12T12:34:07Z INFO ] Please select a port
313
-
❯ /dev/cu.wlan-debug
314
-
/dev/tty.wlan-debug
315
-
/dev/cu.MOMENTUMTW2
316
-
/dev/tty.MOMENTUMTW2
317
-
/dev/cu.Bluetooth-Incoming-Port
318
-
/dev/tty.Bluetooth-Incoming-Port
319
-
```
320
-
321
-
### Linux
255
+
<aid="espflash"></a> <!-- This section previously contained the full procedure, keep this for old URLs -->
322
256
323
-
1. Open the `unor4wifi-update-linux` in Terminal.
257
+
## If you can't update the firmware {#if-you-cant-update-the-firmware}
324
258
325
-
2. Run the following command: `./bin/espflash write-bin -b 115200 0x0 firmware/UNOR4-WIFI-S3-*.bin`
259
+
The above methods will not work if the board cannot be identified as a UNO R4 WiFi. This can happen if the custom firmware for the ESP32-S3 connectivity module is missing completely, or is not functioning correctly. However, the board can still be restored using the espflash utility:
326
260
327
-
-->
261
+
[Restore the connectivity firmware on UNO R4 WiFi with espflash](https://support.arduino.cc/hc/en-us/articles/16379769332892){.link-chevron-right}
0 commit comments