Unable to upload sketch under Windows 7

Hi

Actually, the fact that I'm using Windows 7 is probably irrelevant, as I get the same error under Vista as well!

The error is one I've seen mentioned here several times, ie the "avrdude: stk500_getsync(): not in sync: resp=0x00" type message, but none of the suggestions I've seen has any affect.

Its a UNO, and here's the complete verbose message on attempting to load the basic blink sketch:

Binary sketch size: 1018 bytes (of a 32256 byte maximum)
C:\Program Files\arduino-0022\arduino-0022\hardware/tools/avr/bin/avrdude -CC:\Program Files\arduino-0022\arduino-0022\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p -cstk500v1 -P\.\COM3 -b115200 -D -Uflash:w:C:\Users\Bernie\AppData\Local\Temp\build396908047216537513.tmp\Blink.cpp.hex:i

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:\Program Files\arduino-0022\arduino-0022\hardware/tools/avr/etc/avrdude.conf"

Using Port : \.\COM3
Using Programmer : stk500v1
Overriding Baud Rate : 115200
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.

The driver is the upto date Uno driver, UNO is selected in the drop down menu, as is COM3. The COM port is confirmed as being the UNO and the baud rate matches that in the error message, ie 115200 baud.

I suspect I've damaged the board, as I was driving some 12v leds on their own power supply, and there is a marginal chance that 12v strayed out of bounds. I've changed the processor (to one that does have the bootloader burnt on), but no joy. As implied at the beginning, I've tried it on two different PCs and Vista and Windows 7.

Anyone any suggestions, or should I cut my losses and buy another board - hoping that the problem is not software based?

Cheers Guys

Vista is not exactly a good choice for doing tests compared to W7. Both suck :wink:

Now back to your problem. Test if the serial chip is still working. RX/TX leds blinking, loopback test with a piece of wire from RX to TX pins. If W7 still has a serial terminal, you can use that. If you see text while you're typing and it stops once you pull the wire, it should be ok. If that step fails, you need a new board or a hot-air rework station to replace the small smd chip.

Hi madworm

Thanks for the help. Assuming I've understood your suggestion correctly, running the serial monitor and connecting Tx to Rx should get me a repeat of any text I type in? IE type a txt string, hit enter and the text is printed in the main window. That, I assume, proves the smd chip is ok? Well, I've tried that now, both Rx and Tx leds flash briefly and its echoing the text ok, so it seems the serial chip is ok.

Hmmmm, that means there's another reason for the error. Any ideas on how I could proceed from here?

Cheers
Bernie

You could try reburning the bootloader onto the 328 (which requires an ISP programmer) or getting a new 328 with an Arduino bootloader already on it.

Cheers mellis

I've actually tried two different 328s, both with bootloader on, and I'm still getting the same result. There must be some other aspect of the board thats causing the problem. I suppose the only real test is to breadboard an Arduino or splash out on a new board =(

D'oh :frowning: