Hello,
I have ATmega168, pretty barebones: crystal, 10k RESET resitor and a few capacitors and LEDs.
I burned "ATmegaBOOT_168_diecimila.hex" with a parallel programmer and for serial comunication I use DKU-5 (Prolific PL2303).
When I plug it into power the LED11 starts to blink forever, pushing RESET button dims it and I have not wired DTR.
I push the button down, run the software and release it after ~3 seconds. (The LED still blinks while the software is running)
In Arduino software I get:
Binary sketch size: 896 bytes (of 14336 byte maximum)
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: std_disable(): protocol error, expect=0x14, resp=0x51
so I tried:
avrdude -p m168 -C ../etc/avrdude.conf -c stk500 -P com3 -b 19200 -U flash:w:blink.hex -v -v -v -v > log.txt 2>&1
attached bellow.
I'm running WinXP.
Please, does anyone knows what could be the problem? (I read several threads here about "not in sync", so far without luck...)
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 "../etc/avrdude.conf"
Using Port : com3
Using Programmer : stk500
Overriding Baud Rate : 19200
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: ser_open(): setting dtr
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
^C