Instructables

Solution: avrdude stk500_getsync(): not in sync resp=0x30 error for Arduino

I have had this error: I would plug my Arduino Uno into my Windows 7 PC (this guide should be relevant for Windows 8, Vista and XP also) but whenever I would upload any sketch to the board, all I would get is "avrdude stk500_getsync() not in sync resp=0x30" for a response. This board however worked seamlessly with my Linux machine.

After much searching online, I found there was no 'clear' solution to this.

Joyfully, the fix is actually very easy (at least for me, hopefully for you as well!). So far, there seems to be 2 big causes to this issue: you have the wrong COM port selected (the IDE does not see your board) and/or your Arduino drivers are not set properly.

Unlikely Cause: Bootloader is missing

Before we begin, we should check the bootloader of the Arduino for comprehension. If the bootloader is gone or corrupt, this can cause the issue.
To do this: power and reset the board. Check to see if the pin 13 built-in LED lights; if it is not then your bootloader may be missing. If this is the case, then your problem is beyond the scope of this guide. I would suggest visiting this Sparkfun guide: http://www.sparkfun.com/tutorials/247.

If the LED lights, then your bootloader still exists.

Cause #1: Wrong COM Port 

With the Arduino plugged to the computer, open "Device Manager" and check the "Ports". Check to see if an Arduino device is listed here; if it is, then make note of which COM port the Arduino is on and check that you have this selected in the Arduino IDE (Tools -> Serial Ports). If the COM port your board is on does not show within the IDE, then try different USB ports.

If you can't even see "Ports"; then for some reason, your computer isn't even recognizing that a device is plugged into it. Test your computer by plugging other USB devices into that port. Possibly your Arduino fails at life; try it with other computers.

Cause #2: Drivers not Installed

If you don't see an Arduino device listed under Ports; then you are probably seeing an "Unknown Device". Check to make sure that "Unknown Device" is indeed, the Arduino by plugging and unplugging the board from the computer. "Unknown Device" should appear and reappear. Assuming this is the case, you will need to install the drivers manually for your Arduino. Windows XP, Vista and 7 users may continue with the guide; if you are a Windows8 user, then please make reference to the comment left by finnigan16 below.

Right click on that "Unknown Device" and select "Properties". Click on the "Driver" Tab (Picture 2; Note: In my Picture 2, I already have the driver set, hence why my window reads "Arduino UNO R3 (COM4) Properties", when yours will probably read "Unknown Device Properties").

Select to "Update Driver..." and then choose to select the folder containing the driver on your computer. Conveniently, you already have the drivers for the Arduino on your computer when you installed the Arduino IDE. Navigate to within the Arduino files (where your .exe is; it'll probably be in your Downloads if you didn't move it. In the third picture, you can see my pathway to the drivers folder) to the "drivers" folder and choose the folder. The computer should automatically choose to install one of the drivers within the folder you selected. Simply proceed with the installation and that should fix the problem.

Make sure the Serial Port is then selected correctly!


 
finnigan161 year ago
Hi,
great Instructable. Unfortunately It didn't work for me, however I did find a fix so I thought I'd post it here for anybody else with the same problem. My problem is that I'm using Windows 8 and apparently the arduino drivers aren't signed and therefore windows 8 will not utilize them. Fortunately YouTube user beachedwhale found an easy work around that'll get it working without turning off driver signing. You can watch his video by following this link:

http://www.youtube.com/watch?v=CdE72XUYC7k

In a nutshell, you update the driver through device manager and use the wizard to pick from a list of device drivers on your computer, when this list comes up you choose a Compaq Ricochet Wireless USB Modem, apparently the two devices use the same driver, you just need to change a few of the driver's settings once it's installed (make sure the baud rate is 9600, etc...).

It only takes about two minutes to do, definitely worth a try if your getting this error and running Windows 8.
N.fletch (author)  finnigan161 year ago
I never verified this error with Windows8; thanks for helping make my Instructable more comprehensive. I'll make an edit above pointing to this for those with Windows8.

To try and make this an even more comprehensive solution guide to the given error, I found removing any wire attached to pin 0 (RX) from the arduino made the error go away.

Raitis14 days ago

Thank you so much! Can barely believe that the reason for my frustration while looking for an error in code or circuit was solely my dumbness with not checking IDE. :D

N.fletch (author)  Raitis14 days ago

Glad it helped! Usually when I get stumped, I start over with very basics: "if I can't upload this code and it seems fine, can I upload any code at all?". Then I build back up from there.

vairamani1 month ago

user should select the right comport by verifying it in the device manager and choose the correct comport in tools->serialport

edbarted2 months ago

Hi,
In case of displaying a notice: "avrdude: stk500_getsync(): not in sync: resp=0x00"
download the CDM driver for particular operation system from: http://www.ftdichip.com/Drivers/VCP.htm .
After the installation a new port (com) will be created.
To set Arduino to a new com port and the problem is solved.

Elminator3 months ago
Thank you! My arduino uno was giving me trouble and I didn't know how to fix it. Your instructions helped me get some of the basic projects off the ground.
jvlutters3 months ago
thank you bro this did really help me :D
Dave J3 months ago
Thank you for this instructable, I just spent an hour trying to get this sorted out and your instructions got my sketch up and running in 10 minutes.
N.fletch (author)  Dave J3 months ago
Thanks! Glad to hear this guide is still helping people.
klug5 months ago
Hello,
If you have this problem with an avr barebones only arduino tick Show verbose output during upload and you will see what's the issue. Most likely your uart bridge fails to reset your chip while uploading. (problem with the 100nF cap/ resistor or connection)
If you have an arduino board maybe you blew the chip or the ftdi chip if not driver/ide is the issue.
playinmyblues6 months ago
Great short tutorial! It was just what I needed to get my Arduino running on Windows.
N.fletch (author)  playinmyblues6 months ago
Great! Glad to hear it has helped you out!
Solved my problem...thanks for sharing the solution...cheers!
mahadevan10 months ago
I have also had this problem and circumvented using pressing the 'reset' button Arduino at the point the 'avrdude' is trying to flash. More info is at my blog 
tzq33tdq10 months ago
My Arduino Uno R3 did this and your Instructables helped me fix it! Thanks mate, you're a life-saver!!!
chriscos1 year ago
You will also get this error if you have he wrong board selected from Tools > Board.

I have multiple arduino's. If I forget to change from Arduino Uno to Arduino Duemilanove (AT Mega 328). Then I get this error if I try to upload to my Duemilanove board.
Ardu-kes1 year ago
Hi,
response to my self. Removed the switch that was connected to Uno pin1(TX) and the board worked fine again. :-§ The switch was switched/disconnected/connected at different points, so that was another layer of confusion.
Ardu-kes1 year ago
Hi,
Got the same error, suddenly.
IDE updated to 1.0.3.
Changed Uno R3 to a different one. Upload works, but COM6 changed to COM3.
Swapped in original Uno, 'COM3 not available. Select COM port'. Selecting COM6.
Same error appears.
Uninstalled COM6 in dev man. PC XP reboot.
Dev man:COM1 and COM2. Plugd in orig Uno. New HW found.
Install driver, already in system. Finish. New HW on COM6 (dev man)
Start Ardu IDE 1.0.3, load Example->Basic->Blink - Upload - OK.
Load own sketch, connect LCD, upload ok.
So, the COM-port initial selection is stored in the UNO?
I have a variation on the problem... avrdude says :
avrdude: Can't find programmer id "arduino"

Valid programmers are:
dasa3 = serial port banging, reset=!dtr sck=rts mosi=txd miso=cts [/home/jim/arduino-0021/hardware/tools/avrdude.conf:776]
dasa = serial port banging

bla bla bla...
Can I just edit the avrdude config file? I am running IDE 0022 on Ubuntu 11.04. Works on my Mega, but the Uno refuses to upload!
N.fletch (author)  stringstretcher1 year ago
You certainly stumped me here; I am running 12.04. I have the Arduino 0022 IDE from the SW center and the IDE from Arduino's website and they both work for me. Try the one on Arduino's website! It's a bit more up to date than the SW center one.

I'm not sure if editing the avrdude.conf file would work. Even if it is the source of your problem, it's over half a MB in pure text! It would take forever to find an issue.

Sorry I couldn't be of more help; good luck!
teknohawk1 year ago
WOW! i browsed for a solution for so long without answers to this exact question! thanks so much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I found this by Google'ing the error code, and it lead me immediately to the problem. 5 minutes later my sketch was up and running. Thanks for a great Instructable!
N.fletch (author)  iironmiike11 year ago
Thanks! I'm happy to know it helped.
arcraven1 year ago
This instruction fixed my issue quickly, thanks!
curtlg1 year ago
Had the same error with Leonardo. In my case the wrong board was identified in the board pull down list. I have no idea how that happened!!!!
N.fletch (author)  curtlg1 year ago
That must have been frustrating!
one VERY useful comment to add is to make sure no other programs are currently using the specific COM port that the Arduino is using. For example, I spent 2 hours trying to fix the error described in this page, and then I realized that I had run a few MatLab commands that opened the serial port but I never closed it. The problem persisted even after uninstalling and then reinstalling the Arduino drivers, until I told MatLab to close the serial port.

Also, try restarting your computer in worst cases...

Thanks for the helpful instructable!
wtaylor091 year ago
thanks this helped and fixed my problem
botronics1 year ago
I'm trying to use my Arduino on a Windows 2000 machine. i get that message when trying to upload the program. Will the Arduino work on Windows 2000?
N.fletch (author)  botronics1 year ago
Honestly, I have no experience with Windows 2K. My suggestion would be to look over this following link: http://arduino.cc/playground/Main/UnoWin2k
That article appears to be very comprehensive; you'll probably find a solution there.
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!