Timeout while uploading sketch

3 different Arduino boards, after working fine, suddenly (Uno, Arduino MEGA+WiFi ATmega2560+ESP8266 4Mb CH340G, and MEGA2560) appear to have a similar connection problem, like it was caused by Arduino IDE.

What was tried but didn't work:

  • boards reset (double click)
  • lib updating
  • USB cable check and replacement
  • driver reinstallation
  • uploading sketches from a different PC.
  • Error while burning bootloader.

Any help would be very much appreciated.

Arduino: 1.8.19 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Sketch uses 1536 bytes (0%) of program storage space. Maximum is 253952 bytes.

Global variables use 9 bytes (0%) of dynamic memory, leaving 8183 bytes for local variables. Maximum is 8192 bytes.

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

An error occurred while uploading the sketch

Some questions

  1. Correct port selected?
    2 ) What does Windows device manager think about your boards?
  2. Can you retrieve the board info (vid & pid) in the tools menu?
  3. It's not clear to me if upload on another PC was successful?
  4. How did you burn the bootloader? You need a programmer or Arduino programmed as a programmer (Arduino-as-ISP).
  5. Do all boards use the CH340?
  6. Anything connected to pins 0 and 1?

Please answer per board.

One board Arduino MEGA+WiFi ATmega2560+ESP8266 4Mb CH340G is now working via USB-C.

  1. Correct port would be selected but doesn't appear in ArduinoIDE1.8.19>Tools>Port
  2. Device manager stopped recognizing boards (Uno, Mega). On connection via USB to different PCs with the same version of ArduinoIDE both boards are not seen but appear powered.
  3. Upload from another PC wasn't successful.
  4. I didn't burn the bootloader. Do I need to?
  5. Not. Only one which is back to life (Arduino MEGA+WiFi ATmega2560+ESP8266) connected USB-c (PC) to USB-mini (Arduino).
  6. No

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