Salve a tutti, tempo fa avevo aperto un topic nel quale avevo descritto un problema in un Arduino Mega 2560 rev3.
In pratica mi è impossibile utilizzare la board e, anche utilizzando un Arduino 2009 come ISP non sono riuscito a riprogrammare ne l'atmega16u2 nel atmega2560.
ho provato con avrdude ad aggiornare il firmware del 16u2 e a ricaricare il bootloader ma niente da fare.
Riporto anche il risultato del controllo sia su 16u2 che su atmega 2560 con avrdude:
Atmega16u2
server:~ admin$ avrdude -b 19200 -c avrisp -p m16u2 -v -e -P /dev/tty.usbserial-A10116V1
avrdude: Version 5.11.1, compiled on Feb 16 2012 at 22:11:20
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg WunschSystem wide configuration file is "/usr/local/CrossPack-AVR-20120217/etc/avrdude.conf"
User configuration file is "/Users/admin/.avrduderc"
User configuration file does not exist or is not a regular file, skippingUsing Port : /dev/tty.usbserial-A10116V1
Using Programmer : avrisp
Overriding Baud Rate : 19200
AVR Part : ATmega16U2
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC6
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 MaxW ReadBack
eeprom 65 20 4 0 no 512 4 128 9000 9000 0x00 0x00
flash 65 6 128 0 yes 16384 128 128 4500 4500 0x00 0x00
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00Programmer Type : STK500
Description : Atmel AVR ISP
Hardware Version: 2
Firmware Version: 1.18
Topcard : Unknown
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 usavrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.06s
avrdude: Device signature = 0xffffff
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.avrdude done. Thank you.
... e Atmega2560
server:~ admin$ avrdude -b 19200 -c avrisp -p atmega2560 -v -e -P /dev/tty.usbserial-A10116V1
avrdude: Version 5.11.1, compiled on Feb 16 2012 at 22:11:20
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg WunschSystem wide configuration file is "/usr/local/CrossPack-AVR-20120217/etc/avrdude.conf"
User configuration file is "/Users/admin/.avrduderc"
User configuration file does not exist or is not a regular file, skippingUsing Port : /dev/tty.usbserial-A10116V1
Using Programmer : avrisp
Overriding Baud Rate : 19200
AVR Part : ATMEGA2560
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PA0
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 10 8 0 no 4096 8 0 9000 9000 0x00 0x00
flash 65 10 256 0 yes 262144 256 1024 4500 4500 0x00 0x00
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00Programmer Type : STK500
Description : Atmel AVR ISP
Hardware Version: 2
Firmware Version: 1.18
Topcard : Unknown
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 usavrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.06s
avrdude: Device signature = 0x1e9801
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as D8
avrdude: safemode: efuse reads as FD
avrdude: erasing chipavrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as D8
avrdude: safemode: efuse reads as FD
avrdude: safemode: Fuses OKavrdude done. Thank you.
come potete vedere per il 16u2 mi presenta l'errore del device signature.
Cosa potrei fare per rimediare la situazione? vorrei recuperare almeno la 2560