Pages: [1]   Go Down
Author Topic: Arduino Mega 2560 sketch upload and bootloader problem  (Read 1859 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

Hello,

I've seen few posts here about nearly same problem, but there was no answer.
So step by step.
My Os - Win XP SP3.
My board - Ardu Mega2560.
IDE - Arduino 0021 and Arduino 0022

Just a note - everything worked perfectly before yesterday.

Now about my problem. I'm building aeroquad (ardu bases quadrocopter). Yesterday I wanted to tune RC controls. RC receiver connected to A8-A13 pins of Adru. Arduino did not seen any signal (but it was, I've double checked).
Uploaded flash few times, but that doesn't helped. I thought it could be kind of glitch and I should reflash bootloader. I got UsbTiny from Sparkfun. Tried to flash board via Arduino IDE, it wrote "Uploading......it may take a minute" and stucked.
Reconnected board with UsbTiny and flashed it with AVRStudio 4. It says every ok, verifies ok, fuse bits ok. Only thing is different is lock bits, because locking only bootloader part makes it 0xCF, but not 0x0F as in boards.txt file.
But! After "succesfull" flashing board does not flash with L led on reset press and Arduino IDE shows
...
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
...

when I try to upload anything.

When I try to flash bootloader with avrdude, at verification point it says:
avrdude: verification error, first mismatch at byte 0x3e000
0x0d != 0xff
avrdude: verification error; content mismatch
avrdude: stk500_2_ReceiveMessage(): timeout

Is there a chance to recover my boards? It would be nice.
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 9
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

When you did burn bootloader from the Arduino software, how long did you wait?  It can take a really long time for the 2560 (even up to 20 minutes or more). 

What command line do you use when you try to burn the bootloader from avrdude?

Logged

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

Well, defenetly less than 20 mins.
I used: avrdud -p m2560 -c usbtiny -e -v -U flash:w:blabla.hex -U lock:w:0xCF:m

Actually, I've tried today on another PC, and flashe succesfully. Hooray!
Thanks!
Logged

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

I'm getting the same error message as above and I was wondering if anyone knows the cause of it? I'm going to try bootloading from an old xp machine I have but I'm wondering if there is a work around for this.

Thanks,
Scott
Logged

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

Don't remember exact difference in setups on PCs I've tried, but one was flashing speed. It was significantly slower than 115000 I usually use.
Logged

Pages: [1]   Go Up
Jump to: