Cannot programm Arduino Mega
NicoHood opened this issue · 4 comments
Hi.
I have some problems with the Arduino as ISP. I can program a Nano, pro mini and leonardo. However it its not possible to programm a mega. With the original sketch (not this) i can upload, it sais "upload finished" but the blink sketch is not running. Burning the bootloader works but i get an error.
So i tried this newer version. But it also seems to have problems with the mega. Here i also get errors. Any idea why this happens or maybe how to fix? I try to port this to the 16u2 as integrated arduino Bootloader, so i need to know if there is a fix possible and where the problem might be located.
I tried with and without capacitor and with slow rates (they dont work at all). I also tried to use a nano as icsp but this also fails.
I'd also recommend to set the SS pin OUTPUT so the user can change the ss pin.
Is there anyone who wants to help me with itegrating this to the 16u2 bootloader? I think its possible in general but maybe not worth it if the mega wont work :( Or someone i can ask for this, more resources pls.
Nico
hiya nico - this repo is just a fork of the 2012 version but with a clock out function, like 3 line change... so it's not something i did any deep work on. the mega probably has a different addressing scheme for page writing and verification. so i would look there. this isn't something i'm likely to get to working on so im going to close this issue! sorry i couldn't help more :(
Thx for the answer! There are several problems and we are about to solve it.
#1 this version doesnt work proberly. The official one does!
#2 IDE 1.5.7 works with mega, older versions had an avrdude bug
#3 There is a fuse "bug" which appears for the mega. Its also in the uno but you wont notice if the sketch dont exceed 32kb - bootloader. Explanation here:
http://forum.arduino.cc/index.php?topic=126160.new;topicseen#new
-> Its working with the new ide, the fuse fix and the other version. I cannot get this (adafruit) version running at all, it would be nice if you could refere to the other (official) version and/or this issue post.
The problem is located in the buffer management but i did not dig too deep into that because the other version works.
OK thx, will check out!
oh and by the way (sorry doing this way): may i contact you for asking another thing after you maybe read the forum post? It would be faster if you just hit my blog formula. Thx in advance http://nicohood.wordpress.com/about/