Cant Upload to arduino uno r4 anymore

Hello all,

i am new to arduino , i was trying to upload a sketch but for some reason it doesnt work :frowning:
(it seems to be stuck on upload forever)
,
(it was working some days ago)

at serial monitor i am getting this on a loop

ESP-ROM:esp32s3-20210327
entry 0x403c98d4
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x403cd9f6
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x44c
load:0x403c9700,len:0xbe4
load:0x403cc700,len:0x2a38

when trying to upload from ide its stuck on uploading while showing this message

Global variables use 7076 bytes (21%) of dynamic memory, leaving 25692 bytes for local variables. Maximum is 32768 bytes.
Performing 1200-bps touch reset on serial port COM3
"C:\Users\...\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.9.1-arduino5/bossac" -d --port=COM3 -U -e -w "C:\Users\...\AppData\Local\Temp\arduino\sketches\0297F1B5075C6E085E8C56AC7289CE9E/sketch_jan22a.ino.bin" -R

tried to upload from cloud it gives me this error

Restarting in bootloader mode
Flashing with command:C:/Users/.../.arduino-create/arduino/bossac/1.9.1-arduino5/bossac.exe -d --port=COM3 -U -e -w C:/Users/.../AppData/Local/Temp/arduino-create-agent3178088543/W_station_may15a.bin -R

Hi @smooples. Please try this:

  1. Unplug the USB cable of the UNO R4 WiFi board.
  2. Plug the USB cable of the UNO R4 WiFi board back in.
  3. Select File > New Sketch from the Arduino IDE menus.
  4. Verify you have the port of the UNO R4 WiFi board selected in the IDE's Tools > Port menu.
  5. Select Sketch > Upload from the Arduino IDE menus.

Does the upload succeed this time?

My thought is that the board might have somehow gone into a transient bad state. Power cycling the board could restore it to normal functionality. Uploading a new sketch ensures there isn't anything in the sketch code that could cause the board to immediately go back into the bad state after the upload.

no nothing :frowning: same issue as before i tried to change ports too but to no avail , for extra context i tried to do a firmware update because it was showing as offline in the cloud and nothing works after it just an infinite upload

OK, it was worth a try.

When you connect the UNO R4 WiFi board to your computer and then open the Tools > Port menu in Arduino IDE, do you see the port of the board labeled as "COM3 (Arduino UNO R4 WiFi)", or does it have some different name in the parentheses, like "COM3 (ESP32S3 Dev Module)"?

the later one com3 (ESP32-23-USB-OTG)

image

and thanks for the fast replies :slight_smile: !!

This indicates the standard firmware on the "bridge" module of the UNO R4 WiFi board has been replaced or corrupted. That could happen if you accidentally uploaded a sketch while the bridge module was in the boot mode (as happens when you do a firmware update), or perhaps if the firmware update procedure failed.

The board can be recovered by flashing the standard firmware to the bridge module. The tools we normally use for updating the firmware can't be used when the board is in this state, so it is necessary to use a command line procedure.

I'll provide instructions you can follow to do that:

  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.

1 Like

Hello thanks for the reply and the answer !! i followed the steps and everything works fine :smiley: :D!!

You are welcome. I'm glad it is working now.

Regards,
Per

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.