SparkFun Forums 

Where electronics enthusiasts find answers.

For the discussion of Arduino related topics.
By Old Grey
#200449
I blew a hole in the ATmega16U2 chip on my MEGA2560 when the shield GND-ed through the laptop, and not knowing any better I soldered in a plain new ATmega16U2 chip - I didn't know what it was and how it worked -.

The first problem was the PC didn't see it, so after a lot of reading I found out I needed a driver. I loaded one - it says libusb0 - and now it sees it as ATmega16U2 in Device Manager.
After more reading I used FLIP to load "MEGA-dfu_and_usbserial_combined.hex" - it was the only combined that worked ? - on the chip, and now it comes up as COM20.
Going to IDE it seams to see it - Board Info comes up -, but it doesn't seam to actually communicate.
I try to load Blink and it says :-
Code: Select all
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
Next I try the Loopback test and it works fine.

As a long shot I tried Arduino as ISP, and get
Code: Select all
Arduino: 1.8.7 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

avrdude: Expected signature for ATmega2560 is 1E 98 01
         Double check chip, or use -F to override this check.
Error while burning bootloader.
Then I try USBasp and I get
Code: Select all
Arduino: 1.8.7 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: Expected signature for ATmega2560 is 1E 98 01
         Double check chip, or use -F to override this check.
Error while burning bootloader.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I have no experience and don't know what I'm doing, and when I look at info online the terminology is over my head and I don't know what they are talking about.

Thanks