Pages: [1]   Go Down
Author Topic: How Can I Hack a MEGA 1280 Into a MEGA 2560?  (Read 3740 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Sr. Member
****
Karma: 0
Posts: 297
Arduino rocks!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How can I mod a MEGA 1280 into a MEGA 2560 by un-soldering certian componiants and replaceing them with parts that would make it eqivalent to an Arduino MEGA 2560?
is this possible, and is it a good idea to try?
if it is what would need to be replaced?

                      -THANKS-
                                          -TECH GEEK-
Logged

As always... Thanks for posting!!!

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 443
Posts: 23837
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You're looking at replacing the microcontroller itself.
Comparable to pulling an atmega168 out and putting in a 328.

Am sure its doable if you comfortable unsoldering the 1280 and can do so without damaging the pads to install the 2560.
The parts are listed on the same atmel datasheet.

I haven't compared the 2 schematics to see if anything else would need to be done.

Wow - $18 for the 2560!
http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=ATMEGA2560-16AU-ND
« Last Edit: January 31, 2011, 11:05:18 am by CrossRoads » Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

0
Offline Offline
Sr. Member
****
Karma: 1
Posts: 360
I'm 15. I like making things. I like breaking things better.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The good news is, I believe the 2560 and 1280 are pin compatible, but here's the issue. As far as I know, its not possible to source a 2560 with the arduino bootloader pre-installed. Thus, you will have to find a way to flash it with the new 2560 bootloader. This should be possible (you can do it with the atmega328), but it will probably be a pain. Lastly, the 2560 bootloader is meant to be programmed from the atmega8u2, but by the schematic, I think it should still be able to be programmed by the ftdi chip (its all just over TTL serial).

I think you already know this, but soldering TQFP is a real pain...maybe just grab a new mega. Besides, at least in my opinion, the best feature of the new mega isnt the new proc but the atmega8u2 instead of FTDI, which you will be stuck with on the 1280 board. It really doesn't seem worth it.

Good luck!
Logged

Alice asked the Chesire Cat, who was sitting in a tree, "What road do I take?"
The cat asked, "Where do you want to go?"
"I don't know," Ali

Portugal
Offline Offline
God Member
*****
Karma: 5
Posts: 962
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Gcc can only generate code up to 128k, so using an atmega2560 brings you 0 advantages over the 128, only IAR can generate code for all the atmega2560.
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 331
Posts: 16548
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Gcc can only generate code up to 128k, so using an atmega2560 brings you 0 advantages over the 128, only IAR can generate code for all the atmega2560.

I believe that is a incorrect statement. Your getting your flash word size mixed up with the AVR byte capacity rating. The Gcc compiler can indeed fill the atmega2560's 256k bytes of memory with code. Recall that Harvard architecture cpu have separate code memory (flash) and data memory (sram) , and they are not the same width memories in the AVR series.

 Most AVR instructions have a single 16-bit word format. Gcc can generate code up to 128k WORDS ( = 256k bytes), so a mega2560 does contain twice the program memory as a mega1280 and Gcc can take advantage of all of it.

Lefty
« Last Edit: February 01, 2011, 01:27:42 am by retrolefty » Logged

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 106
Posts: 6378
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Unfortunately: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38549
Logged

Pages: [1]   Go Up
Jump to: