Pages: [1]   Go Down
Author Topic: bootloading a ATMEGA 2560  (Read 764 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi,

I would like to load the boot from arduino onto an ATMEGA 2560.

however after a lot of tries and research on the internet, I've got no results.

I keep on having the following message during the loading :

avrdude: verification error, first mismatch at byte 0x3e000
               0x0d != 0xff
      avrdude: verification error; content mismatch

any ideas how can I do that ?
 
Logged

Scotland
Offline Offline
God Member
*****
Karma: 11
Posts: 988
Have you had your Arduino fix today?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi - Please show your circuit, with programmer, and what you try to program it with, ie, AVRDUDE, Arduino IDE etc
May give us more of an idea. ;-)
Logged

Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

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

I'm trying to load the boot with an other arduino ( I've got a MEGA and a UNO) withe the Arduino IDE.

I made my own board composed of a FT232, a quartz, an Atmel 2560 and some componants, and an ISP connector.

I've followed this thread :

Open the ArduinoISP firmware (in Examples) to your Arduino board.
    Note for Arduino 1.0: you need to make one small change to the ArduinoISP code. Find the line in the heartbeat() function that says "delay(40);" and change it to "delay(20);".
    Select the items in the Tools > Board and Serial Port menus that correspond to the board you are using as the programmer (not the board being programmed).
    Upload the ArduinoISP sketch.
    Wire your Arduino board to the target as shown in the diagram below. (Note for the Arduino Uno: you'll need to add a 10 uF capacitor between reset and ground.)
    Select the item in the Tools > Board menu that corresponds to the board on which you want to burn the bootloader (not the board that you're using as the programmer). See the board descriptions on the environment page for details.
    Use the Burn Bootloader > Arduino as ISP command.

But it's giving just errors .

(BTW please tell me there is a solution to get the boot on this chip)
Logged

Scotland
Offline Offline
God Member
*****
Karma: 11
Posts: 988
Have you had your Arduino fix today?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you post the diagram of your board, and how you have connected up the arduino (including model & how you disabled the autoreset)

If you dont have a diagram, a discription of what you have connected to each pin e.g. crystal -> pin #

Most of the time in these situations, its down to a small error in wiring, or a bad connection.

With this info (and any other you can think of) we should be able to get you up and running
Logged

Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

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

here is the board i've made

http://imageshack.us/photo/my-images/843/atmega2560.jpg/

I've disconnected all the other electronics around.

about the arduino,
for the uno, I've connected the 7,8,9 to LEDs; then I've matched my isp connector and the pads from the arduino (MISO,MOSI, SCK)
I've connected the RESET of the ISP to the pin 10 and the vdd to the 5v from the arduino.

The reset of the uno (programmer) is connected through a resistance to the 5V ( or through a capacitor, 'cause I've found both solutions)
« Last Edit: June 13, 2012, 09:46:03 am by charlimp » Logged

Scotland
Offline Offline
God Member
*****
Karma: 11
Posts: 988
Have you had your Arduino fix today?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

No Picture smiley-sad -

Confirm the following conections :

ISP HEADER      2560

1   MISO   (D12)        PIN22
2   5V              PIN11,31,61,90 & 100
3   SCK(D13)           PIN20
4   MOSI   (D11)        PIN21
5   RESET(D10)   30(WITH 10K PULLUP TO 5V)
6   GND              PIN11,32,62,91 & 99

I don't have a 2560 at hand, so cant set up a test circuit just now. But I just tested programming a 328 with my arduino,
using a wire jumper from reset to 5V (Only while programming) - maybe try that if the wiring looks good.
Logged

Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

Scotland
Offline Offline
God Member
*****
Karma: 11
Posts: 988
Have you had your Arduino fix today?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Found the picture - there is no pull up on reset - this may be the issue? - the rest looks OK
Logged

Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

Pages: [1]   Go Up
Jump to: