My R4 Wifi board reports that the firmware is 0.2.1
As I'm having some trouble trying to get a web server (port 80) and web socket server (port 81) running simultaneously I thought upgrading the radio firmware to the current 0.4.1 version is a good place to start.
I've tried using the option in the IDE. I can connect but the process fails with a generic error about not being able to update the firmware. I've searched these forums and found the hint about ensuring the Serial Monitor is closed. For good measure I also built a blank application (to make sure the wifi module is not being used by the board) and flashed that onto the board. None of this made an difference. I tried shorting the boot pin but that just meant the board could not be enumerated by the IDE.
So I decided to follow the instructions using the downloadable script.
I can download and unzip the file on my Ubuntu host machine. I then open a terminal into that directory and run
./update.sh
I'm prompted to select the port (/dev/ttyACM0) and get the following output
david@LonServer:~/Downloads/unor4wifi-update-linux$ ./update.sh
Start flashing firmware
[2024-06-22T22:12:27Z INFO ] 🚀 A new version of espflash is available: v3.1.0
[2024-06-22T22:12:27Z INFO ] Serial port: '/dev/ttyACM0'
[2024-06-22T22:12:27Z INFO ] Connecting...
[2024-06-22T22:12:27Z INFO ] Unable to connect, retrying with extra delay...
[2024-06-22T22:12:27Z INFO ] Unable to connect, retrying with default delay...
[2024-06-22T22:12:27Z INFO ] Unable to connect, retrying with extra delay...
[2024-06-22T22:12:27Z INFO ] Unable to connect, retrying with default delay...
[2024-06-22T22:12:27Z INFO ] Unable to connect, retrying with extra delay...
[2024-06-22T22:12:27Z INFO ] Unable to connect, retrying with default delay...
[2024-06-22T22:12:27Z INFO ] Unable to connect, retrying with extra delay...
Error: espflash::connection_failed
× Error while connecting to device
╰─▶ Failed to connect to the device
help: Ensure that the device is connected and the reset and boot pins are
not being held down
Typing lsusb shows
Bus 001 Device 034: ID 2341:1002 Arduino SA UNO WiFi R4 CMSIS-DAP
and sudo dmesg shows
[267429.067540] usb 1-5: new full-speed USB device number 34 using xhci_hcd
[267429.221343] usb 1-5: New USB device found, idVendor=2341, idProduct=1002, bcdDevice= 1.00
[267429.221361] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[267429.221370] usb 1-5: Product: UNO WiFi R4 CMSIS-DAP
[267429.221376] usb 1-5: Manufacturer: Arduino
[267429.221382] usb 1-5: SerialNumber: 34B7DA5E4DB0
[267429.226788] hid-generic 0003:2341:1002.0013: hiddev2,hidraw4: USB HID v1.11 Device [Arduino UNO WiFi R4 CMSIS-DAP] on usb-0000:00:14.0-5/input0
[267429.228582] cdc_acm 1-5:1.1: ttyACM0: USB ACM device