Error when uploading on my Arduino. "Frozen"?

Hello everyone!

I just received my Arduino a few days ago and am now encountering a problem when trying to upload a sketch to it. Technical data:

  • Mac 10.15.4 (Catalina)
  • Arduino Olimex 32U4

While it worked fine the first days, I can't upload to the board since I uploaded the last sketch. I didn't change anything on my computer or setup, just uploaded a new sketch and a few minutes later when I wanted to upload an updated version, I didn't work.
I get the following error message:

ser_open(): can't open device "/dev/cu.usbmodem143101": No such file or directory

The last sketch I uploaded included an interrupt. Maybe the board got "frozen" in the interrupt and is now blocking the serial port which I would need to upload a sketch?

I get the same error when using it on another (Windows) computer. When I hit the reset button, the board is shortly connected to the IDE but it's not enough time to upload a new sketch. As soon as the program starts, the connection gets lost.

Maybe someone knows a solution to my problem. Thank you in advance!

I solved the problem using the following steps:

  1. Unplug Arduino.

  2. Press and hold the reset button.

  3. Upload an empty Arduino file/ upload an example file (Arduino still unplugged).

  4. When you see the line "uploading", connect your Arduino with the plug.

Maybe this will help some others to find a solution much faster than I did.

Karma for providing feedback.

I think that it's not necessary to disconnect the Arduino; just keeping reset pressed till the IDE indicates the memory usage should be sufficient.