Moderators: adafruit_support_bill, adafruit


by newhobby on Sun Dec 05, 2010 10:12 pm

I have a USBtinyISP burner and was wondering if there is any way to fix this issue:
It seems the burner can't be used to burn 2560 bootloaders.
I've been trying and always get the same error:
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x3e000
0x0d != 0xff
avrdude: verification error; content mismatch
I can't verify that the reason is the burner as I do not have another one.
I can tell you that I can burn 328P just fine.
Posts: 11
Joined: Sun Dec 05, 2010 10:08 pm

Re: Mega2560

by adafruit on Mon Dec 06, 2010 1:35 pm

sorry, it wont work, the new 2560 requires a different programming method!
User avatar
Posts: 11825
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Re: Mega2560

by vmarguerie on Thu Apr 12, 2012 9:17 am


as the USBtinyISP doesn't work with the mega2560, is there another product that can do this upload job ?

In fact, i'm looking for a solution that allows me to upload a sketch other than with the native usb port, because sometimes, due to the huge serial trafic I have in my sketch, it becomes very hard to upload.

My PC is a laptop, so I can't use parallel would have been so simple :?

Posts: 3
Joined: Tue Mar 08, 2011 12:12 pm

Re: Mega2560

by kscharf on Wed May 16, 2012 11:53 am

Check the Arduino support pages on the Arduino web site, there is a way to use one Arduino board as an USB ISP programmer for another.
The USB tiny *might* actually work to program devices >64K. There is a patch to AVRdude that disables the auto-verify function which seems to be what fails due to the firmware in the USBtiny. The device may actually program but the USBtiny can't perform the verify beyond 64K.
Needless to say there is some risk in using the device without the verify function! Otherwise just buy an AVRispMKII or a clone of one. The real deal will cost you about $35 US from Atmel. I now have both the USBtiny and the AVRispMKII myself having started using atmega1284p chips.
See the bottom of this page:
User avatar
Posts: 185
Joined: Wed Sep 10, 2008 10:29 am

Re: Mega2560

by westfw on Wed May 16, 2012 6:32 pm

I think arduinoisp has problems beyond 128k as well.

The thing is, avrdude might "cheat." Both the stk500v1 (arduinoISP) and usbtinyisp protocols only handle 64k (bytes, words... doesn't matter) in their "bulk program" command. But they also support a "raw spi command" command. So (at least in theory), AVRdude can program ANY location by sending a series of raw spi commands ("Load extended Address byte", ("load program memory page low byte", "Load program memory page high byte") for each word, "write program memory page") - a bunch of bytes and communication "exchanges" for each byte of the bootloader, instead of approximately 1 byte, but it still might be fast enough for an 8k bootloader.
I think that this is how USBTiny can apparently program the 2560 bootloader, but not verify it...
User avatar
Posts: 1373
Joined: Fri Apr 27, 2007 1:01 pm
Location: SF Bay area

Re: Mega2560

by adafruit_support_rick on Wed May 16, 2012 7:00 pm

Have you thought about JTAG? That Atmel JTAGICE 3 is nice

Posts: 15267
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Mega2560

by kscharf on Fri Aug 31, 2012 4:55 pm

driverblock wrote:Have you thought about JTAG? That Atmel JTAGICE 3 is nice

It's possible to add the jtag as a bootloader for arduino by editing the config files.
User avatar
Posts: 185
Joined: Wed Sep 10, 2008 10:29 am