Can't upload sketch!

I got my arduino duemilanove today and had the same error message today. I had to change to com 5 in order to get it to work. Apparently, it does not automatically detect and configure all of the correct settings. Once I did this, it has worked fine.

Now, it's time to start learning and having fun. Best of luck to you.

Good One Flyboy!
I changed USB ports and it works!!! I was waiting for some components I ordered to build my own parallel programmer to reload the bootloader - Sooo glad I didn't do that!

However, it now works but when I open the Serial Monitor the Arduino starts sending gibberish data even though I have no Serial.X code - need to look into this...

FYI, I am using Vista on the PC

All OK,

it all works fine now - we actually were using Pin1 without realizing that was also the Tx pin hence all the gibberish we were seeing.

Thanks

I had this problem too. Checked Ports in Device Manager, and saw that two out of three that software allowed me to pick were in use. Picked the one labeled USB Serial Port (which happened to be COM7), and thereafter everything worked properly.

Hi All

I recently got my hands on two arduino boards, one is the 'official' Arduino duemilanove (Decimilia), on is the Seeeduino (decimila with SMD components).

Having started using the Seeeduino, I had the same problem as others on this thread, namely:

avrdude: stk500_getsync(): not in sync: resp=0x30
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

However, when flipping over to the Duemilanove, the board worked first time.

The Seeeduino was billed as beign totally compatible to the original Decimilia... so just putting this out there in case there is a bug in that particular version of the board.....

I had a similar problem - and thought it was caused by sending out too much info on the serial port.

I ended up editing ~/.arduino/preferences.txt:

serial.debug_rate=9600

And this did the trick.

1 Like

Same problem. But somewhere accidentaly it just uploaded once...

Then I found that the Arduino exe was very slow with prompting ''binary sketch size ...". When you reset the board at this moment (seconds later in my case) it works!

:-?

This is a possible solution to a problem.

I came across a similar problem. My environment is a serial arduino with a USB -> RS232 converter.

The sketch that I uploaded wrote heavily to the serial port. I found two possible work arounds.

On Linux/OSX there was data buffered by the serial port driver, this somehow stopped the sketch from being uploaded. If you flush the serial buffer from either the OS or the USB converter.

Run the commands while the arduino is unplugged from the serial / usb connection.

cat /dev/ttyUSB0 >> /dev/null (If your connection is usb)
cat /dev/ttyS0 >> /dev/null (if your connection is

Your OSX serial device will also exist in /dev/ but I have no idea what the standard naming scheme is for it.

The cat should terminate, if not just ctrl + c to end the command when the data has finished spewing to the terminal or /dev/null.

When you plug the arduino in, upload it before the arduino does its initial program run. (Precompile it if its a long compile) and it should upload and run correctly.

Are the settings in preferences.txt documented somewhere or do we need to guess at what they mean/which ones actually do something?

I had a similar problem - and thought it was caused by sending out too much info on the serial port.

I ended up editing ~/.arduino/preferences.txt:

Code:

serial.debug_rate=9600

And this did the trick.

AM getting the same Error again and again. I tried reseting and uploading within 2 seconds. I even tried unpluging my USB and Pluging it and then giving the upload.Still it didnt work..Also, My serial.debug_rate=9600 is also set in preference.txt..Still no use..What should I do?? :frowning:

Or..Does this have to do anything with the software??

My controller is Arduino Duemilanove Atmega328.

ANd the software am using is sketch_feb09a | Arduino 0018. ::slight_smile:

:slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile: update your drivers to the newest version worked for me

using delimonov

I have similar problem: I cant upload to ArduinoBT my sketch
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
What wrong? Please help me

Same problem. I'm a noob to these things, but I've read pretty much every thread on this problem. It's so general of an error as to be useless. Earnest advice from successful folk is intended well, but can be useless when the aggregate checklist is not only lengthy but almost certainly incomplete.

As an IT guy, I'm used to troubleshooting. I don't think I've ever seen a symptom anywhere, anytime, as difficult to use as a basis for fault discovery. It's literally no better than hearing a user say "it's broke." :-/

Notice that I'm not asking for help. Just chiming in to say "it's broke." :wink:

Wrong chip? WRONG CHIP?

It's as simple as that. The darned mini pro I bought is a 328 -- not the 168 it's supposed to be.

:stuck_out_tongue:

Works fine now.

I experienced also suddenly (after dozens of uploadings w/o problem) a problem while uploading on Duemilanove w/ 328.
I reburned the bootloader with the "bitbang" method

http://www.geocities.jp/arduino_diecimila/bootloader/index_en.html

and problem is gone!

Same Problem!!!!!

avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

I've tried everything: reset buttom, change COM, reburn bootloader,... Nothing works in my ARDUINO.

Any other idea???? :cry:

Maybe u have wireless keyboard or mouse? Because on my pc arduino stops working after some time when i connect wireless keyboa :slight_smile: ;)rd and mouse

Came across the same problem and found the solution finally..
Just check if you have updated your arduino driver before everything :wink:
[u]http://www.arduino.cc/en/Guide/Windows[/u]