I got my Arduino Uno Rev. 3, ATmega328 today and would like to use it to flash some ATMEGA8 chips. So far I can compile, upload and execute programs using the Arduino debugger/programmer tool.
I'm following this guide in order to flash some ATMEGA chips.
But I'm stuck at step 3 where it tells me to execute the following line via CMD:
avrdude -p m8 -b 19200 –B 4 -c avrisp -P COM1
I changed it to COM3 since this port was auto-selected by the Arduino Debugger.
I can communicate with the Arduino Board. But I get the following error:
avrdude: stk500_getsync(): not in sync: resp=0x00
I googled a lot and tried unplugging the board, changed the COM Port and so on.
After that I tried some troubleshooting on CMD. Entered another device value (one that fits my board). I was unable to connect at all (since no COM was defined).
But as soon as I define the right COM (meanwhile it's COM6) I get the same error from before.
avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "C:\WinAVR-20100110\bin\avrdude.conf"
Using Port : COM6
Using Programmer : stk500v1
avrdude: stk500_getsync(): not in sync: resp=0x00
westfw:
avrisp mkll
In that case, I take back what I said about using "stk500v1" - from your initial post, I assumed that you were using the Uno as a programmer...
should I burn the bootloader or something?
I just did the exact same as told in the guide
Well, I have uploaded the ArduinoISP script and after executing:
avrdude -p m328p -c stk500v1 -P COM6 -vv
I've got the following:
avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "C:\WinAVR-20100110\bin\avrdude.conf"
Using Port : COM6
Using Programmer : avrisp
Overriding Baud Rate : 19200
Setting bit clk period : 4.0
AVR Part : ATMEGA328P
Chip Erase delay : 9000 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 :
avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
Still don't get the signature of my chip on the bread board. As soon as I connect the reset wire I get the not in sync error again.
EDIT: I had to wire the reset wire to PIN 10 and got the following:
avrdude: Device signature = 0x1e9307
avrdude: Expected signature for ATMEGA328P is 1E 95 0F
Double check chip, or use -F to override this check.