Unable to upload sketches (Arduino Uno R4 Wifi)

I just got the Arduino plug and make kit, and initially everything was working as expected. I have been working through the tutorial projects, and completed one with out issue. However, all of a sudden when I moved on to a new project, I lost the ability to upload sketches to my board.

I've tried on two different Windows PCs, using two different USB cables, but no luck.

When I try to import the game controller template on my desktop I get the following error message:

When doing the same thing on my laptop I get the following error:

In both cases I'm using the Arduino cloud IDE. However, I've tried the local IDE (2.3.4) on my desktop and I get the same error (invalid serial port). When plugged in the device is lighting up (green power light, and a slowly pulsing 'L' light).

I feel like I've tried all the debugging steps suggested by the app:

  • Disconnecting the board
  • Resetting the board (double tap the reset button)
  • Deleting the device from Arduino cloud and trying to re-add it.
  • Restarting the cloud agent

I'm brand new to Arduino, so apologies if I miss providing some relevant debugging information. I'd really appreciate if someone could point me in the right direction.

Device related issue might be related to the create agent installed in your machine not working as it should. Try these steps first:

  1. Uninstall the Arduino Cloud Agent
  2. Install the Arduino Cloud Agent latest version with admin right.
  3. Check if the Arduino Cloud Agent is installed and running
  4. Update the connectivity module firmware on UNO R4 WiFi
  5. Remove the board as device from the cloud.
  6. Clear your browser's cache, restart it and then add the device(board) as new device and try to upload sketches to it.
  7. Use a simple sketch to test first, like https://app.arduino.cc/templates/cloud-blink

Note: Make sure your IDE is closed.

Hi @Dozie, thanks for responding. Thanks for your patience, I've been away for a week.

I've followed your steps, unfortunately without any luck.

1-3) Uninstalling and reinstalling the Arduino cloud agent (with admin) went fine, and I verified it was up and running.
4) Updating the firmware failed, with a generic error message. I've tried this multiple times without any success.


5-7) Clearing the cache, deleting the device, and re-adding it went fine, but when I tried to upload the cloud-blink sketch, it errors with the same "Invalid serial port" message, and I am unable to upload the sketch.

Also, for what its worth, I was able to get my hands on a macbook, and I tried to setup everything from scratch, but I got the same "We could not find any Arduino device" error message that I got from my Windows laptop.

Are there any further troubleshooting directions you can suggest?

Thanks,
Chris

Alright, pls do next these steps below:

  1. install latest IDE (Arduino IDE 2.3.6) following Download and install Arduino IDE
  2. Restore the USB connectivity firmware on UNO R4 WiFi with espflash, do this correctly as stated in the guide.
  3. Use the Firmware Updater in Arduino IDE following Update the connectivity module firmware on UNO R4 WiFi
  4. Upload a blink LED sketch from the IDE examples.
  5. Once steps #1-4 are completed successsully, close the IDE, ensure that the Cloud agent is running ( Check if the Arduino Cloud Agent is installed and running ), add the board a new device and then upload https://app.arduino.cc/templates/cloud-blink to test.

Hi @Dozie I'm getting hung up on step 2.

I'm following the guide, and when I tried running the epsflash command, I got the following error:

I tried the process again from the start multiple times, and now it just sits at the 'unable to connect, retrying with extra delay' log message. I've waited more than 30 minutes, but it hasn't progressed further.

If it helps, when I boot the board into Download mode, this is what it looks like (which I hope means I did it correctly).

Check that you did not miss anything in the guide Restore the USB connectivity firmware on UNO R4 WiFi with espflash including the jumper wire placement and the steps. You must do it correctly while the board is the only USB device attached to your computer.

If the above fails when you have done it corrctly (check if the USB cable is still working well and leave the cloud page closed) and using the IDE, double tap the reset button fast and check the status of the onboard "L" LED. If the onboard LED fade in and out slowly (pulsating), upload an example sketch (Blink LED) from the IDE examples to the board using a data cable you are sure works fine.

If these fails to resolve the issue, contact Arduino support via Contact Us with your purchase (pdf) receipt.

Hi @Dozie,

Unfortunately, I've had no luck. I was able to get the firmware restore procedure working. The timing seemed to be a bit hit-and-miss, but after trying it 4-5 times it finally took, and I was able to flash the new firmware. However, this did not resolve the issue. Attempts to re-upload the blink template using the cloud editor failed with the original error message.

I'm confident the cable is working correctly, as that was the cable I used to restore the firmware.

I followed your advice to close the cloud editor, and double-tap the rest button, then uploading an empty sketch from the desktop IDE. However, that too failed with the same error.

If this is helpful at all, when it fails to upload on the cloud editor, the debug logs show a repeated message indicating COM5 IsOpen=false. However, windows device manager shows this port as open, and I have verified with process explorer that no other processes are using COM5.

After flashing the connectivity firmware correctly, you need to reset the board before attempting to upload a sketch to the board. So,

  1. install the latest IDE 2,
  2. double tap the reset button twice fast and then
  3. select the board and upload the blink sketch