Go Down

Topic: bootloading a ATMEGA 2560 (Read 950 times) previous topic - next topic

charlimp

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 ?

spycatcher2k

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. ;-)
Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

charlimp

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)

spycatcher2k

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
Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

charlimp

#4
Jun 13, 2012, 04:30 pm Last Edit: Jun 13, 2012, 04:46 pm by charlimp Reason: 1
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)

spycatcher2k

No Picture :( -

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.
Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

spycatcher2k

Found the picture - there is no pull up on reset - this may be the issue? - the rest looks OK
Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

Go Up