ATtiny2313-programmering misslyckas
Postat: 23 augusti 2010, 20:31:33
Jag sitter och har underliga problem med programmerandet av mina AVR-kretsar. Jag använder en USBTiny-programmerare ( http://www.ladyada.net/make/usbtinyisp/index.html ), och datormjukvaran "avrdude". AVRen är av modell ATtiny2313. Jag fick just 4 nya AVRer på posten och ville programmera dessa, men för varje chip står det "initialization failed, rc=-1". Det brukar ju inte vara några konstigheter, brukar innebära att man har glapp, men saken är ju att om jag sätter in min gamla ATtiny2313 så fungerar programmeringen finfint.
Är det möjligt att jag har fått fyra helt defekta AVRer av electrokit?
Här kommer detaljerad spårutskrift från avrdude:
Med min gamla AVR fås istället:
Gammal och nya AVRer är av exakt samma typ, "ATtiny2313-20PI", jag inget annat är ikopplat som lastar benen, enbart ström, reset-pullup samt ISPheadern.
Är det möjligt att jag har fått fyra helt defekta AVRer av electrokit?
Här kommer detaljerad spårutskrift från avrdude:
Kod: Markera allt
E:\Elektronik\AVR-Projekt\Woodclock\default>avrdude -c usbtiny -p t2313 -vvvv
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 "P:\Program\WinAVR\bin\avrdude.conf"
Using Port : lpt1
Using Programmer : usbtiny
AVR Part : ATtiny2313
Chip Erase delay : 9000 us
PAGEL : PD4
BS2 : PD6
RESET disposition : possible i/o
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 65 6 4 0 no 128 4 0 4000 45
00 0xff 0xff
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
flash 65 6 32 0 yes 2048 32 64 4500 45
00 0xff 0xff
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
signature 0 0 0 0 no 3 0 0 0
0 0x00 0x00
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
lock 0 0 0 0 no 1 0 0 9000 90
00 0x00 0x00
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
lfuse 0 0 0 0 no 1 0 0 9000 90
00 0x00 0x00
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
hfuse 0 0 0 0 no 1 0 0 9000 90
00 0x00 0x00
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
efuse 0 0 0 0 no 1 0 0 9000 90
00 0x00 0x00
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
calibration 0 0 0 0 no 2 0 0 0
0 0x00 0x00
Programmer Type : USBtiny
Description : USBtiny simple USB programmer, http://www.ladyada.net
/make/usbtinyisp/
avrdude: programmer operation not supported
avrdude: 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: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
Kod: Markera allt
E:\Elektronik\AVR-Projekt\Woodclock\default>avrdude -c usbtiny -p t2313 -vvvv
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 "P:\Program\WinAVR\bin\avrdude.conf"
Using Port : lpt1
Using Programmer : usbtiny
AVR Part : ATtiny2313
Chip Erase delay : 9000 us
PAGEL : PD4
BS2 : PD6
RESET disposition : possible i/o
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 65 6 4 0 no 128 4 0 4000 45
00 0xff 0xff
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
flash 65 6 32 0 yes 2048 32 64 4500 45
00 0xff 0xff
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
signature 0 0 0 0 no 3 0 0 0
0 0x00 0x00
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
lock 0 0 0 0 no 1 0 0 9000 90
00 0x00 0x00
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
lfuse 0 0 0 0 no 1 0 0 9000 90
00 0x00 0x00
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
hfuse 0 0 0 0 no 1 0 0 9000 90
00 0x00 0x00
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
efuse 0 0 0 0 no 1 0 0 9000 90
00 0x00 0x00
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
calibration 0 0 0 0 no 2 0 0 0
0 0x00 0x00
Programmer Type : USBtiny
Description : USBtiny simple USB programmer, http://www.ladyada.net
/make/usbtinyisp/
avrdude: programmer operation not supported
avrdude: Using SCK period of 10 usec
CMD: [ac 53 00 00] [00 00 53 00]
avrdude: AVR device initialized and ready to accept instructions
Reading | | 0% 0.00sCMD: [30
00 00 00] [00 30 00 1e]
CMD: [30 00 01 00] [00 30 00 91]
Reading | ################# | 33% 0.01sCMD: [30
00 02 00] [00 30 00 0a]
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x1e910a
CMD: [50 00 00 00] [00 50 00 a4]
avrdude: safemode read 1, lfuse value: a4
CMD: [50 00 00 00] [00 50 00 a4]
avrdude: safemode read 2, lfuse value: a4
CMD: [50 00 00 00] [00 50 00 a4]
avrdude: safemode read 3, lfuse value: a4
avrdude: safemode: lfuse reads as A4
CMD: [58 08 00 00] [00 58 08 df]
avrdude: safemode read 1, hfuse value: df
CMD: [58 08 00 00] [00 58 08 df]
avrdude: safemode read 2, hfuse value: df
CMD: [58 08 00 00] [00 58 08 df]
avrdude: safemode read 3, hfuse value: df
avrdude: safemode: hfuse reads as DF
CMD: [50 08 00 00] [00 50 08 fe]
avrdude: safemode read 1, efuse value: fe
CMD: [50 08 00 00] [00 50 08 fe]
avrdude: safemode read 2, efuse value: fe
CMD: [50 08 00 00] [00 50 08 fe]
avrdude: safemode read 3, efuse value: fe
avrdude: safemode: efuse reads as FE
CMD: [a0 00 7c 00] [00 a0 00 ff]
CMD: [a0 00 7d 00] [00 a0 00 ff]
CMD: [a0 00 7e 00] [00 a0 00 ff]
CMD: [a0 00 7f 00] [00 a0 00 ff]
CMD: [50 00 00 00] [00 50 00 a4]
avrdude: safemode read 1, lfuse value: a4
CMD: [50 00 00 00] [00 50 00 a4]
avrdude: safemode read 2, lfuse value: a4
CMD: [50 00 00 00] [00 50 00 a4]
avrdude: safemode read 3, lfuse value: a4
avrdude: safemode: lfuse reads as A4
CMD: [58 08 00 00] [00 58 08 df]
avrdude: safemode read 1, hfuse value: df
CMD: [58 08 00 00] [00 58 08 df]
avrdude: safemode read 2, hfuse value: df
CMD: [58 08 00 00] [00 58 08 df]
avrdude: safemode read 3, hfuse value: df
avrdude: safemode: hfuse reads as DF
CMD: [50 08 00 00] [00 50 08 fe]
avrdude: safemode read 1, efuse value: fe
CMD: [50 08 00 00] [00 50 08 fe]
avrdude: safemode read 2, efuse value: fe
CMD: [50 08 00 00] [00 50 08 fe]
avrdude: safemode read 3, efuse value: fe
avrdude: safemode: efuse reads as FE
avrdude: safemode: Fuses OK
avrdude done. Thank you.