Go Down

Topic: MEGA2560 bricked?  (Read 166 times) previous topic - next topic

guidugast

Hi!

I've looked for a few days now on several forums and no answer were found.
Here is my story:

1 ) I bought the board 2 years ago
2 ) I played with the board and it was ok (programming through main usb)
3 ) I wanted to make a MIDI usb class compliant keyboard, so I changed a few things (can't remember everything, but no more that what you can do, following LUFA stack tutorials...)
4 ) Now I'm back in business with this board, and I jumped into several obstacles trying to make it work as fresh as new.
5 ) I had to put the MEGA2560 in DFU mode and change the mega8U2 firmware again using ATMEL Flip
6 ) Then I was able again to see the board in the the arduino IDE port COM.
7 ) I tried to program it through the main USB wiring. FAIL.
Quote
avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\...\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/etc/avrdude.conf"

         Using Port                    : COM7
         Using Programmer              : wiring
         Overriding Baud Rate          : 115200
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

avrdude done.  Thank you.

An error occurred while uploading the sketch
Just the RX led flashing for each timeout (about every minute)
Anyway, It was not clever as the bootloader should have been erased during the previous work.
8 ) I tried then to burn the bootloader and then upload sketch via USBasp.
What is weird is I don't see any error, but the program (blink) just doesn't start.

here is what I can see burning the bootloader:
Quote
file1
9 ) Then I uploaded the sketch again through USBasp
Here is what I can see.
Quote
file2
Here I am, no easy blinking, and I don't want to throw this board away, could be interesting to know what's happening, I might just be forgotting one simple thing,...I just need some guidelines.

Thank you ladies and gents.


kprims

File1.txt wrote the bootloader.
File2.txt wrote the blink sketch and removed the bootloader.

If you want to use the USB connection you will have to put the bootloader back on the board and then use the upload button after selecting the port and not the upload using programmer.

It looks to me that everything is loading correctly. You may want to get a led and a 330 ohm resistor to check if you have blown or broken the led  on your board on Pin 13 .

Go Up