Problems with cheap Mega2560 Board after Bootloader Trouble

Post Reply
ragepx
Posts: 3
Joined: Mon Jul 23, 2012 8:54 am

Problems with cheap Mega2560 Board after Bootloader Trouble

Post by ragepx »

Hello Friends,

I recently bought a cheap Mega2560 Board as a replacement for my current ProMini to be able to use a serial gps etc.

The problem is, I accidentially flashed it's Bootloader using my USBasp... I know it's stupid and don't ask me why in the world I did it, fact is I did... ;-)

Actually the result is pretty weird, I can upload a sketch (mwc) to the Board just after I uploaded the Bootloader to it, but then I can't upload another sketch as it always fails. In order to be able to upload another I have to flash the Bootloader again. The Bootloader flash runs through (in avrdude and in the arduino ide) but at the end it can't verify the first Byte and says error.

So maybe i need another than the standard mega2560 Bootloader hex from the arduino IDE? Or anything else? Maybe someone can help :-)

What I tried is reflashing it with my USBasp and with a Spare Arduino as ISP, both produce the same error / behavior.


It's this board here:
http://www.goodluckbuy.com/mwc-multiwii ... quadx.html

Gimbal
Posts: 146
Joined: Tue Jul 24, 2012 7:14 pm
Location: Sweden

Re: Problems with cheap Mega2560 Board after Bootloader Trou

Post by Gimbal »

Hi, i have the same board and a shit load of different Arduino clones (all of them i belief) for the Mega i use stk500v2 from Arduino 1.0, it sounds likely that you have set a fuse by mistake (could be if you have an ESD) in that case use fx AVR-Dragon or similar programmer to fix it Google Arduino fuses.

ragepx
Posts: 3
Joined: Mon Jul 23, 2012 8:54 am

Re: Problems with cheap Mega2560 Board after Bootloader Trou

Post by ragepx »

Hey Gimbal,

first of all thanks for your reply! I have already checked the fuses of the mega and they are all set like they should be (regarding to what I found on google). Still the same problem, by the way I can't flash the bootloader using my usbasp as it always gets sclck errors and tells me to update the usbasp firmware, which should be irrelevant cause I already use the latest fw on the usbasp.

The one I used was the stk500v2 from the arduino 1.0.1 sdk. Both with avrdude directly and with the arduino write bootloader function.

Gimbal
Posts: 146
Joined: Tue Jul 24, 2012 7:14 pm
Location: Sweden

Re: Problems with cheap Mega2560 Board after Bootloader Trou

Post by Gimbal »

Hi, Arduino 1.0.1will not work with Multiwii (if you don't no allredy) must use 1.0 or erlier. I wold try to reload the bootloader with fresh fuses

ragepx
Posts: 3
Joined: Mon Jul 23, 2012 8:54 am

Re: Problems with cheap Mega2560 Board after Bootloader Trou

Post by ragepx »

Wow that's strange I've used 1.0.1 the whole time, maybe that is the problem already. I will set the fuses again and try to flash the bootloader with 1.0, then upload and configure multiwii again!

Thanks for your help, really appreciated!

User avatar
EOSBandi
Posts: 802
Joined: Sun Jun 19, 2011 11:32 am
Location: Budapest, Hungary
Contact:

Re: Problems with cheap Mega2560 Board after Bootloader Trou

Post by EOSBandi »

Gimbal wrote:Hi, Arduino 1.0.1will not work with Multiwii (if you don't no allredy) must use 1.0 or erlier. I wold try to reload the bootloader with fresh fuses

Well, this is not true... MultiWii 2.1 works just fine with arduino 1.0.1.
There must be a jumper on your usbasp prgrammer for slow programming. Change it and try flashing.....

johnm1
Posts: 2
Joined: Sun Mar 11, 2012 12:51 am

Re: Problems with cheap Mega2560 Board after Bootloader Trou

Post by johnm1 »

I could not write a Mega 2560 bootloader with a USBASP or usbtiny they will not address above 128k so its a mystery how you could have over wittten it
Using AVRdude ( in Arduino ) from comand line is best test " Avrdude -cstk500v2 -pm2560 -P/COM3 -b115200" if serial is COM3 will tell you if bootloader is working.
If it is not then you will need an avrdragon or AvrispII to write bootloader.
You can still load an application sketch ( multiwii ) Hex under 128k ovr ISP with USPASP and clear bootrst fuse

Post Reply