Re: A little accident render major trouble [SOLVED]

I think I am toast, or my brain is about to be toast! There should be a fix for this somewhere, but I have not found it. I was uploading a sketch on my Mega 2560 R3 then I by accident hit the serial monitor button. The upload failed and the Mega is non responsive after that. It has worked flawless as monitor for my heating system and never given me troubles like this.

This is what I get when trying to upload: “Sketch uses 27,022 bytes (10%) of program storage space. Maximum is 253,952 bytes. Global variables use 1,464 bytes (17%) of dynamic memory, leaving 6,728 bytes for local variables. Maximum is 8,192 bytes. 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”

And this with shift-key pushed: “Sketch uses 27,048 bytes (10%) of program storage space. Maximum is 253,952 bytes. Global variables use 1,464 bytes (17%) of dynamic memory, leaving 6,728 bytes for local variables. Maximum is 8,192 bytes. avrdude: usbdev_open(): did not find any USB device "usb"”

The leds is red both power and pin 13. The board is recognized in Windows 10, XP and Ubuntu. I can upload to other boards like another Mega and Uno with out any problems. The problem is specific to this Mega!

I tried the sketches from Nick Gammon but that didn't work, just getting a bunch of crap in the serial monitor.

I have read all troubleshooters that I can find, obviously not the right one. Now I am out of ideas and steam and need some help.

Any suggestions what to do, cause my knowledge wont take me much further.

First try rebooting the computer in case you've just gotten the drivers in a bad state (worth a try).

Failing that, try reburning bootloader (using an ISP programmer - either an arduino running Arduino as ISP (make sure it's a version that works on the mega - some versions are floating around that don't work on chips with >128k of flash), or a USB Asp or one of the other ISP programmers available online.

Though that really ought not to have trashed the bootloader... I'd expect it to have written garbage to the flash it was writing to at the time, but nothing beyond that.

The tutorial to do this leaves a lot of lose ends and questions!

Can I use ICSP pins to do this straight of like pin 1 to pin 1 and so on? Is there another tutorial that explain it more detailed so that I can understand whats happening and what is supposed to happen (just my greed for knowledge that speaks). All tutorials that I find is about uno to uno or mega to uno never uno to mega.

Still hoping to find the ultimate behind the scene tutorial so I can learn and understand.

I can recommend this blogg http://www.geeetech.com/blog/2012/07/reinstall-arduino-bootloader-using-arduino-as-isp/ . Its not the behind the scene tutorial I wanted but it makes it a lot easier when using ICSP port to burn the bootloader. Thanks for the help SOLVED