Unable to upload to UNO

Hello,

I tried to upload a sketch for the first time using my new Arduino UNO (that I bought from Sparkfun a week ago), and Im getting this strange error. Im using Windows VISTA x64, and I have the latest Arduino v22 program. The D13 LED flashes when I plug it into the PC; the computer gives me the ding-dong sound that I’ve plugged it in. The first time I plugged it in, the drivers auto-installed. I’ve noticed that the RX & TX LED’s flash a little bit and the D13 LED goes out while its attempting to program, but then goes back to the original blinking. Heres the error:

Code:

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

The troubleshooting page on Arduino.cc didnt help. I would appreciate any help. I dont have a clue whats wrong.

Thanks!

UNTEngineer,

The most common cause of such difficulties appears to be incorrect setting, in the Arduino IDE, of either the type of Arduino or the serial port. If you search the SparkFun fora, you’ll find quite a bit of discussion of such problems.

In brief:

  • - Check that the type of Arduino set in the IDE matches the hardware to which you are trying to upload.
  • - *With the Arduino connected*, check that you have the correct port designated. (If that fails, try the other available ports.)
  • Good Luck,

    Eric

    I’ve been getting the same error message and haven’t been able to find anything useful to do about it. Does anyone have any other suggestions before I send the unit back?

    I had this problem when I had something else hooked up to the serial ports on the Arduino. In my case I had the Serial LCD module hooked to the serial pins (0 and 1) on my UNO. This LCD has an ATMEGA chip handling the Serial comms and it has the Arduino bootloader on it. When I was uploading to the UNO, it was trying to connect to the ATMEGA on the Serial LCD board as well. When I moved the LCD to other ports on the UNO and used the SoftwareSerial library, it went away.

    I don’t know if this will help you, I hope it does.

    I should mention that I am using Windows XP.

    I thought I had answered this but I guess I forgot ( I probably answered the post on the Arduino Forums).

    I fixed this problem already. All I had to do was send random characters over the serial to reset the buffer, and after that programming works just fine.

    Apparently everyone has been having this issue, cause a friend of mine had the very same problem with his Arduino Mega, and he figured out the same fix as me.

    Thanks for the help, guys. Hope my fix helps others!