Avrdude stk500-getsync () : arduino uno and mega 2560 avrdude

**anyone read this , pleas help , I need your help as much as it is , but just don't say : simply unplug your cable and plug it in again :expressionless: **


hi there everyone , I searching the Arduino forum for more than 1 month , to find a solution for my problem. I really need to make these Arduino boards working. I hava arduino mega2560 and Arduino Uno. I can't upload codes to Arduino , even blink! same boards don't have same problem and error , but looks like there is same thing named avrdude. in youtube and arduino forum is many things about avrdude , but none of them working ... for me. there is copied error when I try to upload blink on Arduino mega2560 :

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

Sketch uses 662 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.

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega2560 -cwiring -PCOM6 -b115200 -D -Uflash:w:C:\Users\smh.85.miri\AppData\Local\Temp\arduino_build_51469/sketch_jun20d.ino.hex:i

avrdude: Version 6.3-20190619

     Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

     Copyright (c) 2007-2014 Joerg Wunsch



     System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"



     Using Port                    : COM6

     Using Programmer              : wiring

     Overriding Baud Rate          : 115200

avrdude: ser_open(): can't set com-state for "\.\COM6"

avrdude: ser_drain(): read error: The handle is invalid.

avrdude: ser_send(): write error: sorry no info avail

avrdude: stk500_send(): failed to send command to serial port

avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: ser_send(): write error: sorry no info avail

avrdude: stk500_send(): failed to send command to serial port

avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: ser_send(): write error: sorry no info avail

avrdude: stk500_send(): failed to send command to serial port

avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: ser_send(): write error: sorry no info avail

avrdude: stk500_send(): failed to send command to serial port

avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: ser_send(): write error: sorry no info avail

avrdude: stk500_send(): failed to send command to serial port

avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: ser_send(): write error: sorry no info avail

avrdude: stk500_send(): failed to send command to serial port

the selected serial port avrdude: stk500_send(): failed to send command to serial port

does not exist or your board is not connected

avrdude: stk500v2_ReceiveMessage(): timeout

avrdude: stk500v2_getsync(): timeout communicating with programmer

avrdude done. Thank you.


and there is the copied error message when I try to upload blink to uno :

Arduino: 1.8.13 (Windows 10), Board: "Arduino Uno"

Sketch uses 444 bytes (1%) of program storage space. Maximum is 32256 bytes.

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

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM2 -b115200 -D -Uflash:w:C:\Users\smh.85.miri\AppData\Local\Temp\arduino_build_51469/sketch_jun20d.ino.hex:i

avrdude: Version 6.3-20190619

     Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

     Copyright (c) 2007-2014 Joerg Wunsch



     System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"



     Using Port                    : COM2

     Using Programmer              : arduino

     Overriding Baud Rate          : 115200

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xff

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xff

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xff

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xff

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xff

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xff

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xff

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xff

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xff

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xff

avrdude done. Thank you.

I really don't know why arduino don't make a quick and easy solution for every one , or solve this forever !

any one read this , pleas help , I need your help as much as it is , but just don't say : simply unplug your cable and plug it in again :expressionless: thanks for everyone read this.

[Mod edit]
Expletives removed

This error has several possible causes:

  • User has incorrectly configured the Arduino IDE
  • User has added circuitry to their Arduino board that interferes with the upload
  • The Arduino board has been damaged by being subjected to conditions outside its rated specs
  • The Arduino board is defective

There is no magical fix for these things. For the first three, the only solution is clear and comprehensive documentation. There is always room for improvement, but there is some pretty good documentation already. For the last, the solution is a high quality manufacturing and quality control process for the Arduino boards. As with the documentation, there is surely always room for improvement, but I believe that Arduino does a pretty good job with the official boards. When it comes to 3rd party boards, there might be some variation. I haven't run into a lot of bad boards, so I guess the industry does a pretty good job as a whole.


Remove any connections to pins 0 and 1 on your Arduino board. These pins are used for communication with your computer, including uploads. Connecting anything to these pins can interfere with uploads.

Make sure you have the correct board selected from the Arduino IDE's Tools > Board menu. Note that some boards have similar names, but are not interchangeable. Examples include "Arduino Uno" vs. "Arduino Uno WiFi" vs. "Arduino Uno WiFi Rev2", "Arduino Nano" vs. "Arduino Nano Every" vs. "Arduino Nano IoT" vs "Arduino Nano 33 BLE" vs. "Arduino Nano RP2040 Connect", "Arduino Duemilanove" vs. "Arduino Due".

Make sure you have selected the port of your Arduino board from the Arduino IDE's Tools > Port menu.

Sometimes the port will be labeled with the board name in the menu. Other times it will not. If you don’t know which port is your Arduino board, you can find it like this:

  1. Unplug your Arduino board from the computer.
  2. Select Tools > Port from the Arduino IDE's menus.
  3. Note the ports, if any, listed in the menu.
  4. Close the Tools menu. The ports list is only updated when the Tools menu is re-opened, so this step is essential.
  5. Plug your Arduino board into the computer.
  6. Select Tools > Port from the Arduino IDE's menus. - The new port listed in the menu is your Arduino board.

hi there , I try this now on uno and mega right now; but it didn't work :frowning: . thanks for the help "arduino team". I have to notice that I use original Arduino , I can guarantee that with "made in Italy" tag back of the board ( and the shop I purchase from will guarantee this ).

@spiderman85miri
Please do not use expletives of any kind in the forum, I have removed them from your original post.

Please read the forum guidelines How to get the best out of this forum

Continued use of expletives will result in a time out from the forum.

Thanks,

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