Okay, some more progress, still stalled..
Using the following command...
tools/avr/bin/avrdude -C tools/avr/etc/avrdude.conf -p at90usb82 -F -P /dev/ttyACM0 -c arduino -U flash:w:arduino/firmwares/atmegaxxu2/MEGA-dfu_and_usbserial_combined.hex -U lfuse:w:0xFF:m -U hfuse:w:0xD9:m -U efuse:w:0xF4:m -U lock:w:0x0F:m
assigning to device ttyACM0 (the port for the Clone-MEGA) and using arduino as the isp programmer...
And I'm getting...
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
....
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
avrdude done. Thank you.
Tried changing programmer to "avrisp", the Error light (Clone pin 8) comes on,I only get "avrdude: stk500v2_ReceiveMessage(): timeout",
changing it to "avrisp", I get...
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xe0
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xe0
.... (Attempt 4 same response)
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
.... (attempts 7&8, same as 9)
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xe0
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xe0
avrdude done. Thank you.
So..... Some progress... This is using a XRDuino MEGA2650-R3, as the ISP, the 1.6.9 IDE bootloader ArduinoISP program, Heartbeat LED as 9, Error LED as 8, Program LED as 7, Slave reset - 53(S) to pin 5(D), MOSI - 51(S) to pin 4(D), MISO - 50(S) to Pin 1(D), SCK - 52(S) to Pin 6(D)
power from 3.3V to pin 2(D) & GND to pin 6(D) (S=Source (the clone) D=Destination (the crashed MEGA)
Wait, I think I finally got a response!
tools/avr/bin/avrdude -C tools/avr/etc/avrdude.conf -p at90usb82 -F -P /dev/ttyACM0 -c avrispmkii -U flash:w:arduino/avr/firmwares/atmegaxxu2/MEGA-dfu_and_usbserial_combined.hex -U lfuse:w:0xFF:m -U hfuse:w:0xD9:m -U efuse:w:0xF4:m -U lock:w:0x0F:m
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x1e9801
avrdude: Expected signature for AT90USB82 is 1E 93 82
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "arduino/avr/firmwares/atmegaxxu2/MEGA-dfu_and_usbserial_combined.hex"
avrdude: input file arduino/avr/firmwares/atmegaxxu2/MEGA-dfu_and_usbserial_combined.hex auto detected as Intel Hex
avrdude: writing flash (7452 bytes):
Writing | ################################################## | 100% 1.69s
avrdude: 7452 bytes of flash written
avrdude: verifying flash memory against arduino/avr/firmwares/atmegaxxu2/MEGA-dfu_and_usbserial_combined.hex:
avrdude: load data flash data from input file arduino/avr/firmwares/atmegaxxu2/MEGA-dfu_and_usbserial_combined.hex:
avrdude: input file arduino/avr/firmwares/atmegaxxu2/MEGA-dfu_and_usbserial_combined.hex auto detected as Intel Hex
avrdude: input file arduino/avr/firmwares/atmegaxxu2/MEGA-dfu_and_usbserial_combined.hex contains 7452 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 1.21s
avrdude: verifying ...
avrdude: 7452 bytes of flash verified
avrdude: reading input file "0xFF"
avrdude: writing lfuse (1 bytes):
Writing | | 0% 0.00s ***failed;
Writing | ################################################## | 100% 0.09s
avrdude: 1 bytes of lfuse written
avrdude: verifying lfuse memory against 0xFF:
avrdude: load data lfuse data from input file 0xFF:
avrdude: input file 0xFF contains 1 bytes
avrdude: reading on-chip lfuse data:
Reading | ################################################## | 100% 0.00s
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
0x00 != 0xff
avrdude: verification error; content mismatch
avrdude: safemode: lfuse changed! Was ff, and is now 0
Would you like this fuse to be changed back? [y/n] y
But, it simply locks into a repeated :
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
I've got a bad feeling, the 8u2 may well be bricked...
Thanks for the help, though! I made a lot more progress with you, but this may well be a cooked chip