Go Down

Topic: Can't upload to Arduino Mega 2560 (Read 5804 times) previous topic - next topic

Samueldw

The loopback test goes wrong. I'm now trying to update the firmware of the 8u2 chip but I can't reset it.

Maybe I have to solder a 10k resistor on my board but I don't know where. Only the uno is shown in the tutorial. And I don't know if I've got a revision 1 or 2.

eried

No resistor, just a screwdriver.


First red arrow, then bridge and hold the 2 pads in the green arrow until windows detect a DFU device
My website: http://ried.cl

Samueldw

I tried it but nothing is installing and com3 is still there.

eried

it can be tricky you may solder the resistor if you can't do it with the screwdriver. I tried and it works eventually
My website: http://ried.cl

Samueldw

the screwdriver works, but windows does not detect a dfu device.

eried


the screwdriver works, but windows does not detect a dfu device.


The first pins you bridge resets the arduino, the second one enables the DFU, you have to be quick or do that in another way. For me it worked nicely, jump reset, then DFU pins and windows eventually detected a new DFU device.

If you are not able to do that, the small chip is probably dead.
My website: http://ried.cl

Samueldw

when I bridge the green arrow pins, my arduino resets.

I think the chip is just dead. And now? Do I have to program my arduino with a usb-serial programmer?

eried


when I bridge the green arrow pins, my arduino resets.

I think the chip is just dead. And now? Do I have to program my arduino with a usb-serial programmer?


My experience was only updating my mega, I am not sure if all the revisions are the same or behave the same, but if is dead, the option is to use another arduino or usb-serial as you say. Or try to replace the chip with a reworking station
My website: http://ried.cl

Samueldw

Replacing the chip is a possibility, to bad that I don't have a reworking station. =(

I think I'm going to buy a programmer. Do you recommend the original programmer from atmel, or just a cheap usb to serial programmer from ebay?

eried


Replacing the chip is a possibility, to bad that I don't have a reworking station. =(

I think I'm going to buy a programmer. Do you recommend the original programmer from atmel, or just a cheap usb to serial programmer from ebay?


It depends, maybe you can buy original atmel one OR chinese cheap + chinese cheap rework station $)
My website: http://ried.cl

dougiel

Have exactly the same problem. Are you using 1.0.1 ? . I was and when I rebuilt the sketch for 0022 the problem went away !. I have no problems uploading to the other boards I have with 1.0.1 only the Mega 2560. Could it possibly be the software ?.
Dougie L

eried


Have exactly the same problem. Are you using 1.0.1 ? . I was and when I rebuilt the sketch for 0022 the problem went away !. I have no problems uploading to the other boards I have with 1.0.1 only the Mega 2560. Could it possibly be the software ?.
Dougie L


Can you test http://arduino.cc/forum/index.php/topic,118440.0.html ? I upgraded the 'uploader' in that modded version. I had a similar problem (frequently) with 1.0.1 and my 2560 but Samueldw's arduino never worked.
My website: http://ried.cl

dougiel

eried posted
Can you test http://arduino.cc/forum/index.php/topic,118440.0.html ? I upgraded the 'uploader' in that modded version. I had a similar problem (frequently) with 1.0.1 and my 2560 but Samueldw's arduino never worked. /quote

Just tried that and it still will not upload to a Mega 2560. No problem with a Uno or a Uno Pro. I have just rebuilt the Mega program so it does not use any 1.0.1. parts so I can upload with the old 0022. Do like that SRAM estimate though after getting caught out on one sketch.
Many thanks
Dougie L

Mozart

Samueldw,

I noticed in your earlier post that you had mentioned the use of the 8u2 chip and I am pretty sure the 2560 is using the 16u2.  May help may not but anyway it is generally good to know.  Also, I have not found any good information on resetting the 16u2.  I believe mine (16u2) is bricked but haven't completely thrown in the towel yet, whats more I have not been able to determine the reason why it is no longer working.  I must admit that locating complete information on the 2560 is a bit like tracking down "Big Foot" in a snow storm...occasionally you can find a foot print but "Big Foot" always seems to get away...:)

bibre


Have exactly the same problem. Are you using 1.0.1 ? . I was and when I rebuilt the sketch for 0022 the problem went away !. I have no problems uploading to the other boards I have with 1.0.1 only the Mega 2560. Could it possibly be the software ?.
Dougie L


I had the same problem and also went back to 0022.
I feel fine with 022, it works great and I will not upgrade.  ;)
Billy     http://www.z-world.com/operations/gbremer/

When you've eliminated the impossible,
whatever remains, however improbable, must be

Go Up