Updating firmware fails: "× No such file or directory (os error 2)"

Continuing the discussion from UNO R4 Wifi is not recognized or wrong recognized:

bymistake i did yes for all questions, what should i do? Please help sir


this error pops up when i did it on cmd

Don't worry about it. That won't cause any problems.

Since I don't know what procedure you have been following, I think it will be best to start fresh. I'll provide a complete set of instructions you can follow to update the firmware on the "bridge" module of your UNO R4 WiFi board:

  1. Disconnect the USB cable of the UNO R4 WiFi board from your computer.
  2. Use a jumper wire to connect these two pins ("DOWNLOAD" and "GND") on the 2x3 male header that is near the USB socket on the UNO R4 WiFi board:
    📷

    Arduino - CC BY-SA 4.0 (cropped)

  3. Connect the UNO R4 WiFi board to your computer with a USB cable.
  4. Open the release page for the latest version of the firmware in your web browser:
    https://github.com/arduino/uno-r4-wifi-usb-bridge/releases/latest
  5. Click the "unor4wifi-update-windows.zip" download link under the "Assets" section of the release page:
  6. Wait for the download to finish.
  7. Extract the downloaded file.
  8. Start Windows "File Explorer".
  9. Open the unor4wifi-update-windows folder that was created when you extracted the downloaded unor4wifi-update-windows.zip file at the previous step in the instructions.
  10. In the folder listing of the unor4wifi-update-windows folder, hold the Shift key while clicking the right hand button on the mouse.
  11. From the context menu, click "Open PowerShell window here".
    Windows PowerShell will now open.
  12. Type the following command at the Windows PowerShell window command prompt:
    bin\espflash write-bin -b 115200 0x0 (Get-Item .\firmware\UNOR4-WIFI-S3-*.bin).FullName
    
  13. Press the Enter key.
  14. The PowerShell window might now show a list of the serial ports present on your computer.
    For example:
    Start flashing firmware
    [2023-07-11T06:39:09Z INFO ] Detected 2 serial ports
    [2023-07-11T06:39:09Z INFO ] Ports which match a known common dev board are highlighted
    [2023-07-11T06:39:09Z INFO ] Please select a port
    ❯ COM1
      COM42- USB Serial Device (COM42)
    
    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.
  15. 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.
  16. The flashing process should now start. Wait for it to finish, as indicated by output that looks something like this:
    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:15] [========================================]      826/826     0x0
    
  17. Disconnect the USB cable of the UNO R4 WiFi board from your computer.
    :exclamation: It is essential to perform this step.
  18. Disconnect the jumper wire you added at step (2) of the instructions.
  19. Connect the UNO R4 WiFi board to your computer with the USB cable again.

The board should now be recognized correctly in Arduino IDE once again.


Please let me know if you have any questions or problems while following those instructions.

3 Likes

Thank you very much sir, this means a lot, really! thank you you are great sir, I also have a doubt sir how should i updated firmware for my arduino uno r4 wifi so that no other problem would pop up again. once again thank you.

You are welcome. I'm glad if I was able to be of assistance.

Regards,
Per

even with the jumper mine still says "× No such file or directory (os error 2)" and shows up as ESP32 family device in the ide I rally need help with this one.

@ptillisch please answer this i am having a very similar problem!

Hi @timmytheterror. Please add a forum reply here to tell us which operating system you are using (e.g., "Windows")?

I ask because I would like to give you the appropriate instructions for your operating system.

Mac OS 10.15.7 catalina

OK, great. Please follow these instructions:

  1. Disconnect the USB cable of the UNO R4 WiFi board from your computer.
  2. Use a jumper wire to connect these two pins ("DOWNLOAD" and "GND") on the 2x3 male header that is near the USB socket on the UNO R4 WiFi board:
    📷

    Arduino - CC BY-SA 4.0 (cropped)

  3. Connect the UNO R4 WiFi board to your computer with a USB cable.
  4. Open the release page for the latest version of the firmware in your web browser:
    https://github.com/arduino/uno-r4-wifi-usb-bridge/releases/latest
  5. Click the "unor4wifi-update-macos.zip" download link under the "Assets" section of the release page:
  6. Wait for the download to finish.
  7. Extract the downloaded file.
  8. Unzip the downloaded file.
  9. Control-click on the unzipped unor4wifi-update-macos folder.
    A context menu will open.
  10. Select "New Terminal at Folder" from the menu.
    A terminal window will open.
  11. Type the following command in the Terminal window:
    sudo xattr -d com.apple.quarantine bin/espflash; bin/espflash write-bin -b 115200 0x0 ./firmware/UNOR4-WIFI-S3-*.bin
    
  12. Press the Enter key.
    A "Password" prompt will appear in the Terminal window.
  13. Type your macOS user password.
  14. Press the Enter key.
  15. The terminal window might now show a list of the serial ports present on your computer.
    For example:
    [2024-04-04T04:54:21Z INFO ] 🚀 A new version of espflash is available: v3.0.0
    [2024-04-04T04:54:21Z INFO ] Detected 6 serial ports
    [2024-04-04T04:54:21Z INFO ] Ports which match a known common dev board are highlighted
    [2024-04-04T04:54:21Z 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.usbmodem2114101 - USB JTAG_serial debug unit
      /dev/tty.usbmodem2114101 - USB JTAG_serial debug unit
    
    If so, use the key on your keyboard to select the first "USB JTAG_serial debug unit" port from the list (/dev/cu.usbmodem2114101 in the example above), and then press the Enter key.
  16. 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.
  17. The flashing process should now start. Wait for it to finish, as indicated by output that looks something like this:
    [2024-04-04T04:50:38Z INFO ] Serial port: '/dev/cu.usbmodem2114101'
    [2024-04-04T04:50:38Z INFO ] Connecting...
    
    [2024-04-04T04:50:38Z 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:16] [========================================]     877/877     0x0
    
  18. Disconnect the USB cable of the UNO R4 WiFi board from your computer.
    :exclamation: It is essential to perform this step.
  19. Disconnect the jumper wire you added at step (2) of the instructions.
  20. Connect the UNO R4 WiFi board to your computer with the USB cable again.

The board should now be recognized correctly in Arduino IDE once again.


Please let me know if you have any questions or problems while following those instructions.