Skip to content

Commit 95fe21c

Browse files
authored
Update the wireless connectivity firmware on UNO R4 WiFi [HC-1318] (#247)
* Create Update-the-wireless-connectivity-firmware-on-UNO-R4-WiFi.md * fix typo * Mention Cloud support and 'VCRUNTIME140.dII was not found' issue
1 parent 2100008 commit 95fe21c

File tree

1 file changed

+204
-0
lines changed

1 file changed

+204
-0
lines changed
Lines changed: 204 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,204 @@
1+
---
2+
title: Update the wireless connectivity firmware on UNO R4 WiFi
3+
---
4+
5+
Learn how to update the wireless connectivity firmware on the ESP32-S3 module on the UNO R4 WiFi.
6+
7+
Updating the firmware is required to use UNO R4 WiFi with Arduino Cloud.
8+
9+
In this article:
10+
11+
* [Windows](#windows)
12+
* [macOS](#macos)
13+
* [Linux](#linux)
14+
15+
---
16+
17+
<a id="windows"></a>
18+
19+
## Windows
20+
21+
1. Unplug any non-essential USB devices from your computer.
22+
1. Connect the UNO R4 WiFi board to your computer with the USB cable.
23+
1. Download <a class="link-download" href="https://github.com/arduino/uno-r4-wifi-usb-bridge/releases/latest/download/unor4wifi-update-windows.zip">unor4wifi-update-windows.zip</a>
24+
1. [Unzip](https://support.microsoft.com/windows/f6dde0a7-0fec-8294-e1d3-703ed85e7ebc) the downloaded file.
25+
1. Double-click on the `update.bat` file that is in the unzipped folder.
26+
1. Depending on your Windows security settings, a "**Windows protected your PC**" dialog might now open:
27+
> **Microsoft Defender SmartScreen prevented an unrecognized app from starting. Running this app might put your PC at risk.**
28+
29+
If so, click the "**More info**" link in the dialog and then click the "**Run anyway**" button.
30+
1. A terminal window will open. The terminal window might now show a list of the serial ports present on your computer.
31+
32+
For example:
33+
34+
```text
35+
Start flashing firmware
36+
[2023-07-11T06:39:09Z INFO ] Detected 2 serial ports
37+
[2023-07-11T06:39:09Z INFO ] Ports which match a known common dev board are highlighted
38+
[2023-07-11T06:39:09Z INFO ] Please select a port
39+
❯ COM1
40+
COM43 - USB Serial Device (COM43)
41+
```
42+
43+
If so, use the <kbd>****</kbd> key on your keyboard to select the port of the **UNO R4 WiFi** board from the list, and then press the <kbd>**Enter**</kbd> key.
44+
1. The terminal window will now show the following prompt:
45+
46+
```text
47+
? Remember this serial port for future use? (y/n) ›
48+
```
49+
50+
Press the <kbd>**N**</kbd> key on your keyboard.
51+
1. The flashing process should now start. Wait for it to finish, as indicated by output that looks something like this:
52+
53+
```text
54+
Chip type: esp32s3 (revision v0.1)
55+
Crystal frequency: 40MHz
56+
Flash size: 8MB
57+
Features: WiFi, BLE
58+
MAC address: dc:54:75:c4:c6:54
59+
[00:00:15] [========================================] 689/689 0x0
60+
Press any key to continue . . .
61+
```
62+
63+
1. Press any key on your keyboard to close the terminal window.
64+
1. Disconnect the USB cable of the **UNO R4 WiFi** board from your computer.
65+
1. Connect the **UNO R4 WiFi** board to your computer with the USB cable again.
66+
67+
### Troubleshooting for Windows
68+
69+
If you get a `VCRUNTIME140.dII was not found` error, download and install the <a class="link-top-right" href="https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2015-2017-2019-and-2022">Microsoft Visual C++ Redistributable package</a> from Microsoft.
70+
71+
---
72+
73+
<a id="macos"></a>
74+
75+
## macOS
76+
77+
1. Unplug any non-essential USB devices from your computer.
78+
1. Connect the UNO R4 WiFi board to your computer with the USB cable.
79+
1. Download <a class="link-download" href="https://github.com/arduino/uno-r4-wifi-usb-bridge/releases/latest/download/unor4wifi-update-macos.zip">unor4wifi-update-macos.zip</a>
80+
1. [Unzip](https://support.apple.com/en-ca/guide/mac-help/mchlp2528/mac) the downloaded file.
81+
1. Control-click on the unzipped `unor4wifi-update-macos` folder and select "**New Terminal at Folder**" from the context menu. A terminal window will open.
82+
1. Type the following command in the **Terminal** window:
83+
84+
```text
85+
chmod a+x update.command && sudo xattr -d com.apple.quarantine bin/espflash && sudo xattr -d com.apple.quarantine bin/unor4wifi-reboot-macos
86+
```
87+
88+
1. Press the <kbd>**Enter**</kbd> key.
89+
1. Type the following command in the **Terminal** window:
90+
91+
```text
92+
./update.command
93+
```
94+
95+
1. Press the <kbd>**Enter**</kbd> key.
96+
1. Type your macOS user password in the "Password" prompt and press the <kbd>**Enter**</kbd> key again.
97+
1. The terminal window might now show a list of the serial ports present on your computer.
98+
99+
For example:
100+
101+
```text
102+
Start flashing firmware
103+
[2023-07-11T08:55:51Z INFO ] Detected 6 serial ports
104+
[2023-07-11T08:55:51Z INFO ] Ports which match a known common dev board are highlighted
105+
[2023-07-11T08:55:51Z INFO ] Please select a port
106+
❯ /dev/cu.wlan-debug
107+
/dev/tty.wlan-debug
108+
/dev/cu.Bluetooth-Incoming-Port
109+
/dev/tty.Bluetooth-Incoming-Port
110+
/dev/cu.usbmodem2214101 - USB JTAG_serial debug unit
111+
/dev/tty.usbmodem2214101 - USB JTAG_serial debug unit
112+
```
113+
114+
If so, use the <kbd>****</kbd> key on your keyboard to select the `dev/cu.usbmodem*` port for **USB JTAG_serial debug unit** and then press the <kbd>**Enter**</kbd> key.
115+
116+
1. The terminal window will now show the following prompt:
117+
118+
```text
119+
? Remember this serial port for future use? (y/n) ›
120+
```
121+
122+
Press the <kbd>**N**</kbd> key on your keyboard.
123+
1. The flashing process should now start. Wait for it to finish, as indicated by output that looks something like this:
124+
125+
```text
126+
[2023-07-11T08:59:44Z INFO ] Serial port: '/dev/cu.usbmodem2214101'
127+
[2023-07-11T08:59:44Z INFO ] Connecting...
128+
[2023-07-11T08:59:45Z INFO ] Using flash stub
129+
Chip type: esp32s3 (revision v0.1)
130+
Crystal frequency: 40MHz
131+
Flash size: 8MB
132+
Features: WiFi, BLE
133+
MAC address: dc:54:75:c4:c6:54
134+
[00:00:14] [========================================] 689/689 0x0
135+
```
136+
137+
1. Close the **Terminal** window.
138+
1. Disconnect the USB cable of the **UNO R4 WiFi** board from your computer.
139+
1. Connect the **UNO R4 WiFi** board to your computer with the USB cable again.
140+
141+
### Troubleshooting for macOS
142+
143+
* If you get a `Cannot put the board in ESP mode. (via 'unor4wifi-reboot')` error: disconnect and reconnect the board, then run the command again.
144+
* If you get an `xattr: bin/espflash: No such xattr: com.apple.quarantine` or `xattr: bin/espflash: No such xattr: com.apple.quarantine` error, it means that the command has already been run, or is otherwise not needed. Proceed with the next step.
145+
146+
---
147+
148+
<a id="linux"></a>
149+
150+
## Linux
151+
152+
1. Unplug any non-essential USB devices from your computer.
153+
1. Connect the UNO R4 WiFi board to your computer with the USB cable.
154+
1. Download <a class="link-download" href="https://github.com/arduino/uno-r4-wifi-usb-bridge/releases/latest/download/unor4wifi-update-linux.zip">unor4wifi-update-linux.zip</a>
155+
1. Open the release page for the latest version of the firmware in your web browser:
156+
<https://github.com/arduino/uno-r4-wifi-usb-bridge/releases/latest>
157+
1. Extract the downloaded ZIP file.
158+
1. Open [a command line terminal](https://ubuntu.com/tutorials/command-line-for-beginners) in the extracted folder.
159+
1. Type the following command:
160+
161+
```text
162+
./update.sh
163+
```
164+
165+
1. Press the <kbd>**Enter**</kbd> key.
166+
1. The terminal window might now show a list of the serial ports present on your computer.
167+
168+
For example:
169+
170+
```text
171+
Start flashing firmware
172+
[2023-07-12T15:02:36Z INFO ] Detected 3 serial ports
173+
[2023-07-12T15:02:36Z INFO ] Ports which match a known common dev board are highlighted
174+
[2023-07-12T15:02:36Z INFO ] Please select a port
175+
❯ /dev/ttyACM0 - 7 Series/C210 Series Chipset Family USB xHCI Host Controller
176+
/dev/ttyS4
177+
/dev/ttyS0
178+
```
179+
180+
If so, use the <kbd>****</kbd> key on your keyboard to select the port of the **UNO R4 WiFi** board from the list, and then press the <kbd>**Enter**</kbd> key.
181+
1. The terminal window will now show the following prompt:
182+
183+
```text
184+
? Remember this serial port for future use? (y/n) ›
185+
```
186+
187+
Press the <kbd>**N**</kbd> key on your keyboard.
188+
1. The flashing process should now start. Wait for it to finish, as indicated by output that looks something like this:
189+
190+
```text
191+
[2023-07-12T15:04:46Z INFO ] Serial port: '/dev/ttyACM0'
192+
[2023-07-12T15:04:46Z INFO ] Connecting...
193+
[2023-07-12T15:04:46Z INFO ] Using flash stub
194+
Chip type: esp32s3 (revision v0.1)
195+
Crystal frequency: 40MHz
196+
Flash size: 8MB
197+
Features: WiFi, BLE
198+
MAC address: dc:54:75:c4:c6:54
199+
[00:00:14] [========================================] 689/689 0x0
200+
```
201+
202+
1. Close the terminal window.
203+
1. Disconnect the USB cable of the **UNO R4 WiFi** board from your computer.
204+
1. Connect the **UNO R4 WiFi** board to your computer with the USB cable again.

0 commit comments

Comments
 (0)