Boa ideia HugoPT!
Consegui fazer usando a linha de comando no 0022 com opção -F e tanto TX do tiny quanto o Led13 do Duemilanove piscaram enquanto estava lendo e/ou gravando. Porém não carregou o exemplo blink e este foi o resultado:
C:\Software\Arduino\arduino-0022\hardware\tools\avr\bin>avrdude -CC:\Software\Ar
duino\arduino-0022\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p
-cusbtiny -P\.\COM2 -b57600 -D -Uflash:w:C:\DOCUME~1\SRM\CONFIG~1\Temp\build354
5477587438612966.tmp\Blink.cpp.hex:i -F
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:\Software\Arduino\arduino-0022\har
dware/tools/avr/etc/avrdude.conf"
Using Port : \.\COM2
Using Programmer : usbtiny
Overriding Baud Rate : 57600
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 :
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
eeprom 65 5 4 0 no 1024 4 0 3600 36
00 0xff 0xff
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
flash 65 6 128 0 yes 32768 128 256 4500 45
00 0xff 0xff
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 4500 45
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 4500 45
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 4500 45
00 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 4500 45
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 1 0 0 0
0 0x00 0x00
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
Programmer Type : USBTINY
Description : USBtiny simple USB programmer
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
avrdude: AVR device initialized and ready to accept instructions
Reading | | 0% 0.00sCMD: [30
00 00 00] [00 00 00 00]
CMD: [30 00 01 00] [00 00 00 00]
Reading | ################# | 33% 0.00sCMD: [30
00 02 00] [00 00 00 00]
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATMEGA328P is 1E 95 0F
CMD: [50 00 00 00] [00 00 00 00]
avrdude: safemode read 1, lfuse value: 0
CMD: [50 00 00 00] [00 00 00 00]
avrdude: safemode read 2, lfuse value: 0
CMD: [50 00 00 00] [00 00 00 00]
avrdude: safemode read 3, lfuse value: 0
avrdude: safemode: lfuse reads as 0
CMD: [58 08 00 00] [00 00 00 00]
avrdude: safemode read 1, hfuse value: 0
CMD: [58 08 00 00] [00 00 00 00]
avrdude: safemode read 2, hfuse value: 0
CMD: [58 08 00 00] [00 00 00 00]
avrdude: safemode read 3, hfuse value: 0
avrdude: safemode: hfuse reads as 0
CMD: [50 08 00 00] [00 00 00 00]
avrdude: safemode read 1, efuse value: 0
CMD: [50 08 00 00] [00 00 00 00]
avrdude: safemode read 2, efuse value: 0
CMD: [50 08 00 00] [00 00 00 00]
avrdude: safemode read 3, efuse value: 0
avrdude: safemode: efuse reads as 0
avrdude: reading input file "C:\DOCUME~1\SRM\CONFIG~1\Temp\build3545477587438612
966.tmp\Blink.cpp.hex"
avrdude: writing flash (1018 bytes):
Writing | | 0% 0.00sCMD: [4c
00 00 00] [00 00 00 00]
Writing | ###### | 12% 0.36sCMD: [4c
00 40 00] [00 00 00 00]
Writing | ############# | 25% 0.72sCMD: [4c
00 80 00] [00 00 00 00]
Writing | ################### | 37% 1.06sCMD: [4c
00 c0 00] [00 00 00 00]
Writing | ######################### | 50% 1.41sCMD: [4c
01 00 00] [00 00 00 00]
Writing | ############################### | 62% 1.77sCMD: [4c
01 40 00] [00 00 00 00]
Writing | ###################################### | 75% 2.11sCMD: [4c
01 80 00] [00 00 00 00]
Writing | ############################################ | 88% 2.45sCMD: [4c
01 c0 00] [00 00 00 00]
Writing | ################################################## | 100% 2.80s
avrdude: 1018 bytes of flash written
avrdude: verifying flash memory against C:\DOCUME~1\SRM\CONFIG~1\Temp\build35454
77587438612966.tmp\Blink.cpp.hex:
avrdude: load data flash data from input file C:\DOCUME~1\SRM\CONFIG~1\Temp\buil
d3545477587438612966.tmp\Blink.cpp.hex:
avrdude: input file C:\DOCUME~1\SRM\CONFIG~1\Temp\build3545477587438612966.tmp\B
link.cpp.hex contains 1018 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 1.92s
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
0x0c != 0x00
avrdude: verification error; content mismatch
CMD: [50 00 00 00] [00 00 00 00]
avrdude: safemode read 1, lfuse value: 0
CMD: [50 00 00 00] [00 00 00 00]
avrdude: safemode read 2, lfuse value: 0
CMD: [50 00 00 00] [00 00 00 00]
avrdude: safemode read 3, lfuse value: 0
avrdude: safemode: lfuse reads as 0
CMD: [58 08 00 00] [00 00 00 00]
avrdude: safemode read 1, hfuse value: 0
CMD: [58 08 00 00] [00 00 00 00]
avrdude: safemode read 2, hfuse value: 0
CMD: [58 08 00 00] [00 00 00 00]
avrdude: safemode read 3, hfuse value: 0
avrdude: safemode: hfuse reads as 0
CMD: [50 08 00 00] [00 00 00 00]
avrdude: safemode read 1, efuse value: 0
CMD: [50 08 00 00] [00 00 00 00]
avrdude: safemode read 2, efuse value: 0
CMD: [50 08 00 00] [00 00 00 00]
avrdude: safemode read 3, efuse value: 0
avrdude: safemode: efuse reads as 0
avrdude: safemode: Fuses OK
avrdude done. Thank you.
Não mexi nos fuses e já tentei ler com o programador, mas sempre recebo a mensagem "invalid signature".
Obrigado