Arduino Forum upgrade scheduled for Monday, October 20th, 11am-4pm (CEST). Sorry for the inconvenience!
Pages: [1]   Go Down
Author Topic: Bootloading an ATmega2560  (Read 688 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is it possible to bootload an ATmega2560 with an Arduino Duemilanove (ATmega328p)? If so, where do you connect the wires? I do not have a Mega to attach the 2560 to.

Thanks,
bojj
Logged

Canada
Offline Offline
God Member
*****
Karma: 7
Posts: 602
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I can't see why not( but I'm half blind).  I think It's worth a try anyway.

Connect: (Duemilanove to Atmega2560)
    SCK to SCK
    MISO to MISO
    MOSI to MOSI
    Pin 10 to Reset
    5V to VCC (all)
    GND to GND (all)

Also, you will likely have to disable the auto-reset on the Duemilanove.  This is apparently usually done by placing a 10uF capacitor from Reset on the Duemilanove to ground.
Logged

Facts just don't care if you ignore them.

Global Moderator
Melbourne, Australia
Offline Offline
Brattain Member
*****
Karma: 535
Posts: 19768
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

This gives the pin numbers on the Mega2560:

Logged

http://gammon.com.au/electronics
Please post technical questions on the forum - not by personal message. Thanks!

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

ArduinoISP doesn't support devices with 256k of flash, but it's possible (unlikely, but possible) that AVRdude does magic to make it work anyway...
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks so much for all the help, everyone! Maybe I'll get the 1280 instead.
Logged

Global Moderator
Melbourne, Australia
Offline Offline
Brattain Member
*****
Karma: 535
Posts: 19768
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you clarify the question? You have a raw Atmega2560 with no bootloader? Is that right?
Logged

http://gammon.com.au/electronics
Please post technical questions on the forum - not by personal message. Thanks!

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@Nick
Yes, that's correct. I do have a breakout board for it.
Logged

Global Moderator
Melbourne, Australia
Offline Offline
Brattain Member
*****
Karma: 535
Posts: 19768
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

There was another thread recently where someone was having trouble installing the bootloader on a Mega2560. In the end I suggested getting the AVRISP MkII from Atmel (or some distributor) because that is designed by Atmel for their processors. Then make up an SPI header using the standard (6) pins and you can plug it in and upload the Mega bootloader. I don't know if the 1280 will be any better, I suspect some programmers don't go over 64 Kb properly.
Logged

http://gammon.com.au/electronics
Please post technical questions on the forum - not by personal message. Thanks!

Pages: [1]   Go Up
Arduino Forum upgrade scheduled for Monday, October 20th, 11am-4pm (CEST). Sorry for the inconvenience!
Jump to: