Hi,
I can't upload anything to my Diecimila. Since this seems to be a rather common problem, I went to the Arduino troubleshooting page and checked everything. Then I looked at all similar threads in this forum and tried everything possible. I didn't try burning a new bootloader, but the LED blinks once as expected and the report looks okay (as you can see below). I changed many USB serial port configuration parameters in Device Manager. Then I started calling AVRDUDE from the command line for fine control and even entered terminal mode to no avail. A typical command line is:
avrdude -CC:../etc/avrdude.conf -pm8 -cstk500v1 -PCOM4 -b19200 -D
-Uflash:w:C:\Util\arduino\examples\Digital\Blink\applet\Blink.hex:i -v -v
The output is below. The last message ("programmer is out of sync") looks very unusual.
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:../etc/avrdude.conf"
Using Port : COM4
Using Programmer : stk500v1
Overriding Baud Rate : 19200
AVR Part : ATMEGA8
Chip Erase delay : 10000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
eeprom 4 20 128 0 no 512 0 0 9000 90
00 0xff 0xff
flash 33 10 64 0 yes 8192 64 128 4500 45
00 0xff 0x00
lfuse 0 0 0 0 no 1 0 0 2000 20
00 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 2000 20
00 0x00 0x00
lock 0 0 0 0 no 1 0 0 2000 20
00 0x00 0x00
calibration 0 0 0 0 no 4 0 0 0
0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0
0 0x00 0x00
Programmer Type : STK500
Description : Atmel STK500 Version 1.x firmware
Hardware Version: 2
Firmware Version: 1.18
Topcard : Unknown
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9307
avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: reading input file "C:\Util\arduino\examples\Digital\Blink\applet\Blink
.hex"
avrdude: writing flash (860 bytes):
Writing | | 0% 0.00s
avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x64
Writing | ################################################## | 100% 10.02s
avrdude: failed to write flash memory, rc=-4
avrdude: stk500_cmd(): programmer is out of sync
I had problems with the FTDI chip before (see here) but I fixed them. Since then, however, I cannot upload anything.
Any ideas?