avrdude: stk500_getsync(): not in sync: resp=0x00
Moderators: adafruit_support_bill, adafruit

avrdude: stk500_getsync(): not in sync: resp=0x00

by kikathom on Fri Aug 31, 2012 4:36 pm

When I try to upload a sketch I get this error in the program
avrdude: stk500_getsync(): not in sync: resp=0x00

how do i fix this?
kikathom
 
Posts: 3
Joined: Fri Aug 31, 2012 4:17 pm

Re: avrdude: stk500_getsync(): not in sync: resp=0x00

by adafruit_support_bill on Sat Sep 01, 2012 5:13 am

Make sure you have the right board type selected in Tools->Board. Also make sure you have the right serial port selected in Tools->Serial Port.
User avatar
adafruit_support_bill
 
Posts: 30796
Joined: Sat Feb 07, 2009 10:11 am

Re: avrdude: stk500_getsync(): not in sync: resp=0x00

by kikathom on Sat Sep 01, 2012 3:28 pm

It is the correct board and serial port
kikathom
 
Posts: 3
Joined: Fri Aug 31, 2012 4:17 pm

Re: avrdude: stk500_getsync(): not in sync: resp=0x00

by adafruit_support_bill on Sat Sep 01, 2012 5:02 pm

Hold the shift key down while you press the upload button and post the resulting diagnostic output.
User avatar
adafruit_support_bill
 
Posts: 30796
Joined: Sat Feb 07, 2009 10:11 am

Re: avrdude: stk500_getsync(): not in sync: resp=0x00

by kikathom on Sat Sep 01, 2012 5:28 pm

Got it fixed ty
kikathom
 
Posts: 3
Joined: Fri Aug 31, 2012 4:17 pm

Re: avrdude: stk500_getsync(): not in sync: resp=0x00

by daremick on Wed Sep 26, 2012 10:20 pm

What was the fix, because I'm having the same issue. So far all the other sites I checked just say it could be anything. If you could post your fix It would be great. :) Thanks!
daremick
 
Posts: 25
Joined: Wed Sep 26, 2012 10:17 pm

Re: avrdude: stk500_getsync(): not in sync: resp=0x00

by daremick on Wed Sep 26, 2012 10:25 pm

Actually I just fixed it :P can't tell I'm new here. I just unplugged the USB from the PC (previously I had only unplugged it from the UNO. And pressed RESET on the board as well as restarted the IDE program. Not sure which one of those fixed the issue or if all of them did but I used the BLINK program as a test run and it's working fine now. Hope this helps anyone else who might be looking.
daremick
 
Posts: 25
Joined: Wed Sep 26, 2012 10:17 pm

Re: avrdude: stk500_getsync(): not in sync: resp=0x00

by tharun on Sat Oct 06, 2012 12:13 pm

Well even i was facing the same problem while uploading.and u had told to post the data while pressing shift key and uploading .Here's what i got. pleaseee help.
avrdude: usbdev_open(): did not find any USB device "usb"
tharun
 
Posts: 1
Joined: Sat Oct 06, 2012 12:10 pm

Re: avrdude: stk500_getsync(): not in sync: resp=0x00

by adafruit_support_bill on Sat Oct 06, 2012 12:59 pm

@tharun - Sounds like you have the wrong port selected. What OS are you using?
User avatar
adafruit_support_bill
 
Posts: 30796
Joined: Sat Feb 07, 2009 10:11 am

Re: avrdude: stk500_getsync(): not in sync: resp=0x00

by Aman on Sun Oct 07, 2012 2:48 am

I am getting the same problem with my arduino... it was working fyn initially (for about 2-3 hours) but it shows the error now... i tried uploading while pressing the shift key... The output is as follows:


avrdude: Version 5.4-arduino, compiled on Oct 11 2007 at 19:12:32
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

System wide configuration file is "C:\Users\SONY\Desktop\Aman\Freeduino Board\Arduino IDE (arduino-0021)\hardware/tools/avr/etc/avrdude.conf"

Using Port : \\.\COM7
Using Programmer : stk500v1
Overriding Baud Rate : 19200
avrdude: ser_open(): setting dtr
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Recv:
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: Send: Q [51] [20]
avrdude: Recv:
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

avrdude done. Thank you.


Pls help me out.. I will b grateful to you...
Aman
 
Posts: 5
Joined: Sun Oct 07, 2012 1:59 am

Re: avrdude: stk500_getsync(): not in sync: resp=0x00

by adafruit_support_bill on Sun Oct 07, 2012 6:59 am

@Aman - Double check that you have the right COM port. Occasionally they get re-assigned by Windows.

Also - watch the leds on the Arduino. Do you see any flashing as it tries to upload?
User avatar
adafruit_support_bill
 
Posts: 30796
Joined: Sat Feb 07, 2009 10:11 am

Re: avrdude: stk500_getsync(): not in sync: resp=0x00

by Aman on Sun Oct 07, 2012 10:44 am

yeah, i ve checked the comm port many a times.. its fyn..
no its not flashing.. although, it was flashing earlier.. dnt knw wat hapnd suddenly..
i suppose there's some problem with the bootloader... pls help me out...
Aman
 
Posts: 5
Joined: Sun Oct 07, 2012 1:59 am

Re: avrdude: stk500_getsync(): not in sync: resp=0x00

by adafruit_support_bill on Sun Oct 07, 2012 12:47 pm

If you press the reset button, do you see any flashing?
User avatar
adafruit_support_bill
 
Posts: 30796
Joined: Sat Feb 07, 2009 10:11 am

Re: avrdude: stk500_getsync(): not in sync: resp=0x00

by Aman on Sun Oct 07, 2012 1:44 pm

yeah.. aftr pressing reseset, it flashes for a sec nd then stops..
Aman
 
Posts: 5
Joined: Sun Oct 07, 2012 1:59 am

Re: avrdude: stk500_getsync(): not in sync: resp=0x00

by adafruit_support_bill on Sun Oct 07, 2012 4:26 pm

It sounds like the bootloader is working, but the usb/serial connection is not.
Let's try to rule out a few of the simpler possibilities first:
    Try different USB ports. USB 3.0 ports can be a problem, so stick with 2.0 ports if possible.
    Try a different cable. (You would be surprised how often that is the problem!)

And what kind of Arduino are you using? Is it an UNO?
User avatar
adafruit_support_bill
 
Posts: 30796
Joined: Sat Feb 07, 2009 10:11 am