This updater script can be used to automatically put the UNO R4 WiFi in ESP download
mode and upload the latest firmware.
The script uses unor4wifi-reboot to put the board in ESP download
mode through an HID message; and espflash to flash the firmware bundle.
- Extract the zip file
- Disconnect all USB gadgets from your PC
- Connect your UNO R4 WiFi
- Double click on update.bat
- Follow instructions on the terminal window
- Disconnect and connect your UNO R4 WiFi from your PC
On windows espflash
do not list the board as Espressif USB JTAG/serial debug unit
but only as generic COMX
port.
Check the COMX
properties from the device manager to be sure what to select.
If Windows is overprotective click on More info
and then Run anyway
- Extract the zip file
- Disconnect all USB gadgets from your PC
- Connect your UNO R4 WiFi
- From the terminal emulator run
./update.sh
- Follow instructions on the terminal window
- Disconnect and connect your UNO R4 WiFi from your PC
On some distro may be required to run the script with sudo
.
- Extract the zip file
- Disconnect all USB gadgets from your PC
- Connect your UNO R4 WiFi
- Double click on update.command
- Follow instructions on the terminal window
- Disconnect and connect your UNO R4 WiFi from your PC
If MacOS complains about the developer run this commands from the root folder of the extracted .zip file and then double click again on the script.
chmod a+x update.command
sudo xattr -d com.apple.quarantine bin/espflash
sudo xattr -d com.apple.quarantine bin/unor4wifi-reboot-macos
Running the script from the terminal instead of double click should avoid the commands above.
- If the script report this error:
Cannot put the board in ESP mode. (via 'unor4wifi-reboot')
Disconnect and connect again your UNO R4 WiFi from your PC and re-run the script.
Follow the "Run espflash directly" instructions provided in this Arduino Help Center article: