system
February 3, 2011, 10:10am
1
You may have seen my topic on the old forum : http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1294997078
To reassume i have two "Atmega168 20pu" chips without any bootloader
I have tried three methods to put the bootloader
a) using arduinoisp with 16 mhz crystal
b) bitbang mode
c) using usbtinyISP
on all of these methods i get :
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.
using avrdude from the command line
"C:\Program Files\Arduino\arduino-0022\hardware\tools\avr\bin\avrdude.exe" -C "C:\Program Files\Arduino\arduino-0022\hardware\tools\avr\etc\avrdude.conf" -p m168 -P com5 -c avrisp -b 19200 -F
I get :
avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATMEGA168 is 1E 94 06
same are the results using winavr...
Run this...
C:\Program Files\Arduino\arduino-0022\hardware\tools\avr\bin\avrdude.exe" -C "C:\Program Files\Arduino\arduino-0022\hardware\tools\avr\etc\avrdude.conf" -p m168 -P com5 -c avrisp -b 19200 -v -v -v
Post the results. Please use code tags.
system
February 3, 2011, 8:23pm
3
There you go . I am using usbtiny.
"C:\Program Files\Arduino\arduino-0
022\hardware\tools\avr\bin\avrdude.exe" -C "C:\Program Files\Arduino\arduino-002
2\hardware\tools\avr\etc\avrdude.conf" -p m168 -c usbtiny -b 19200 -v -v -v
avrdude.exe: 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\arduino
-0022\hardware\tools\avr\etc\avrdude.conf"
Using Port : lpt1
Using Programmer : usbtiny
Overriding Baud Rate : 19200
AVR Part : ATMEGA168
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 :
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW
MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ -----
----- ---------
eeprom 65 5 4 0 no 512 4 0 3600
3600 0xff 0xff
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW
MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ -----
----- ---------
flash 65 6 128 0 yes 16384 128 128 4500
4500 0xff 0xff
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW
MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ -----
----- ---------
lfuse 0 0 0 0 no 1 0 0 4500
4500 0x00 0x00
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW
MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ -----
----- ---------
hfuse 0 0 0 0 no 1 0 0 4500
4500 0x00 0x00
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW
MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ -----
----- ---------
efuse 0 0 0 0 no 1 0 0 4500
4500 0x00 0x00
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW
MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ -----
----- ---------
lock 0 0 0 0 no 1 0 0 4500
4500 0x00 0x00
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW
MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ -----
----- ---------
calibration 0 0 0 0 no 1 0 0 0
0 0x00 0x00
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW
MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ -----
----- ---------
signature 0 0 0 0 no 3 0 0 0
0 0x00 0x00
Programmer Type : USBTINY
Description : USBtiny simple USB programmer
avrdude.exe: Using SCK period of 10 usec
CMD: [ac 53 00 00] [00 00 00 00]
CMD: [ac 53 00 00] [00 00 00 00]
avrdude.exe: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude.exe done. Thank you.
Using usbtinyISP i can read with success my original atmega 368 bundled with my arduino duemillanove.
Thanks
Do you have a 16 MHz crystal connected to the 168 processor?
It looks like the 168 processor is not responding to the programmer. I know that doesn't help but, unfortunately, it's all I have to offer. You've proven the programmer and software are working. I cannot think of anything else to try.
system
February 24, 2011, 12:12am
7
Hello again and thanks to all for your support and feedback !
I have sent back the two ATMEGA 168 and i got back two others from the same seller.
Now everything works like a charm.
The first one i have put the bootloader using usbtiny + arduino (without the usb cable) with the ICSP cable. No problems at all i just used the arduino gui normally.
The second one i have used the usbtiny with my handmade arduino breadboard. I only pressed the reset button once then the bootloader was successfully loaded via the arduino gui.
So it was so simple that i did not even use avrdude directly but only within arduino GUI
Thanks !