arduino bootloader problem

Hi, yesterday, i'm working with my arduino and, for nothing, it stop working!

I can't upload anymore program on it, i always receive error message :

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

When i'm trying to burn the bootloader, i got this message :

avrdude: usbdev_open(): did not find any USB device "usb"

I tried to reinstall driver, i tried with old version of arduino software, i try on another computer. Nothing is working, the 13th pin is just blinking fast when i try to upload program or i press the reset button.

I found a similar post on this forom, but no one solution is working. I have an adruino diecimila and i'm working with Arduino 0011 on windows XP.

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1187909552

Any idea ???

Thanks !

I can't upload anymore program on it, i always receive error message :

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

I get these errors too. The bar above the errors tells me to go to http://www.arduino.cc/en/Guide/troubleshooting#uploading and troubleshoot. Look there, and if you get your board to work, tell me how please!

it's look like a bootloader problem ... i purchase a tool to re-burn the bootloader : http://www.adafruit.com/index.php?main_page=product_info&cPath=16&products_id=46

i'll get it in 1 or 2 week ... ! it's a kind of usb parralle programmer ... work to burn bootloader if arduino wasn't able too.

I could tell you if this stuff work when i'll get it !

if you find an answer before, tell me please!

thanks

I just receive my UsbTinyISP. Unfortunately, it come disasembled (http://www.adafruit.com/index.php?main_page=product_info&cPath=16&products_id=46). It was my first welding. Everyting working the second time because the first time i soldered everyting execept socket (only curved pins). But when i soldered all, it's powered without problem.

You can assembled it with this very usefull tutorial : USBtiny-based AVR Programmer

When the usbTinyISP is done, connect it on your arduino, install drivers (USBtiny-based AVR Programmer), and install Win AVR (AVR Tutorial - Software setup for Windows).

After that, you need to download the Bootloader (Arduino Starter Kit kaufen [verschiedene Ausführungen])

The final step is to upload to bootloader with usbtinyisp on your arduino. It take 3 step (http://www.ladyada.net/forums/viewtopic.php?t=3558)

  • The first one is to unlock the bootloader and erase it : avrdude -c usbtiny -p m168 -B 5 -V -e -U lock:w:0x3F:m -U hfuse:w:0xDF:m -U lfuse:w:0xFF:m -U efuse:w:0xF8:m

  • The second is to uploader the bootloader : avrdude -c usbtiny -p m168 -B 1 -V -D -U flash:w:ATmegaBOOT_168.hex:i

  • Finnaly, lock it : avrdude -c usbtiny -p m168 -B 5 -V -U lock:w:0xCF:m

If you have problem, be sure it good connected on your arduino (try 2 senses)

Good luck for everyone who have to same problem than me !!

Hi Everybody - Here it is February 11, 2009 and I still have this problem with my Windows Vista computer trying to upload onto my Arduino board.
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
I've read all the solutions: Disabled firewall, reinstalled FTDI driver, updated the Java software, pushed reset before uploading, changed my COM port settings and speed, unplugged USB then replugged! Hasn't anyone actually figured out the problem yet?
BTW - I have an iMac (my wife's) and it has absolutely NO problems with the board.
Standing Patiently By,
Fred Olivas

Hasn't anyone actually figured out the problem yet?

Why, Vista, of course!

BTW - I have an iMac (my wife's) and it has absolutely NO problems with the board.

THIS is a very nice data point! So it appears that the Arduino itself is working fine? MOST of the assumptions so far have assumed that there has been something wrong with the Arduino board. This moves the problem pretty firmly onto the PC side of things...

When the Arduino is plugged in, how does it show up in the windows device manager (I assume Vista still has such a thing?) How do you feel about burning some sort of test sketch with your wife's Mac, and then connecting it to your PC and poking at it with hyperterminal or something like that?

When you said you reinstalled the FTDI drivers, did you download the latest version from FTDI, or just re-install the version that came with the arduino package?

No, it works o.k under vista , that isn`t your problem !!!!

Quote: When the Arduino is plugged in, how does it show up in the windows device manager (I assume Vista still has such a thing?)
Answer: Yes it does and it appears as USB Serial Port (COM5)

Quote: How do you feel about burning some sort of test sketch with your wife's Mac?
Answer: I've uploaded several sketches onto my Arduino board via the iMac.

Quote: ...connecting it to your PC and poking at it with hyperterminal or something like that?
Answer: I don't know what your talking about, sorry.

The post previous to this one states that there are NO problems associated with Vista and the Arduino board but perhaps the poster is only looking at the Arduino with the ATmega168 chip and doesn't have the ATmega328p chip installed. I don't have any problems with my Arduino, 168 and Vista either. It's only the larger chip that gives me problems. Also, the ATmega168, as seen on my PC, is COM6 and the 328p is COM5...I wonder if this might be my problem.
Regards,
Fred Olivas

Hi Fred,

A stab in the dark. Where did you buy your 328P from ? If it was from ladyada (adafruit), your boards.txt (to be found under PathToArduinoFolder\hardware) may have the incorrect speed listed.

atmega328.upload.speed=57600

needs to be changed to

atmega328.upload.speed=19200

IIRC, the installation of Arduino 0013 sets the speed to 57600 whereas the chips from adafruit require you to change this to 19200.

I had to do this on my Linux box to get the arduino ide to communicate properly with my 328P.

HTH

Ver

In one of my earlier posts I believe that I stated that I tried changing the upload speed to no avail. I have even changed the BOARDS.TXT file to try and sync the two together but that doesn't work either.
Purchased my chip from FUNDAMENTAL LOGIC and their suggestion was to simply change the port speed to 19200 just as you suggested. Doesn't work. I really do believe that this is a Windoze Vista problem and I'm hoping that other Vista users can direct my path to a solution.
Kindest Regards to all,
Fred Olivas

Problem solved, at least for me. The problem:
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
The solution was to purchase new chips with new bootloaders installed. Now my Windows/Vista computer is quite happy uploading sketches into the new ATmega 328p chips. I sure do love the extra memory!
Regards to all,
Fred Olivas

Hi,

I had the same problem with a new Freeduino - I could not upload the program, and I got the "not in sync" message.

Nothing I could do would get it to upload. I tried changing the COM port, changing the baud rate, pressing the reset button...

This surprised me because I have been uploading programs to my older Freeduinos for many months with no problems.

From what others have said, I thought it must be the board, but all of these are tested twice before being sent out. (I got my board from Nuelectronics in the UK).

There is however another difference which may be significant. Previously, I have been using Arduino 11, and everything worked fine every time. This time, I was using Arduino 13 (because the example sketch I had would not compile under Arduino 11). My problem appeared the first time I used Arduino 13.

Is it possible that using Arduino 13 may have something to do with this? Are other people with the same problem also using Arduino 13?

For the record, I am using XP, but this does not seem to be a common factor.

I have sent my board back to the supplier to be checked over and/or to have the bootloader repaired.

Thanks all,

Robin

Solution to this problem:

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

I know it looks kind of weird but Da_Hero's solution worked for me after days of hair pulling frustration.

The bottom of this thread has the solution!

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1187909552/105#115

If it works for you make a note on this forum so others don't miss it.