the USBasp I'm using shows up as USB vendor/id But if that's the case, how do I keep from erasing the bootloader when uploading new sketches? Or should I resign to just upload via the ICSP port and skip "the easy way" of upload-and-testing through the USB port? Something just hit me - can it be so evil that the Mega2560 chip also has the bootloader on it, and when I upload my first sketch, I also overwrite the bootloader? That would certainly explain why it won't respond to further upload attempts, since the Blink example code doesn't include a fresh bootloader. The baffling part is, how come the first upload works without problems but after that I'm "locked out" even though I'm using all the same settings?īoard Arduino Mega, Processor Mega 2560, Programmer AVRISP mkII, avrdude says this while programming the first sketch: (It doesn't matter if it's the same sketch that just worked, that I try to upload again - it's only the first time I upload that will work, all subsequent tries gives 'timeout' from avrdude.)Īny help on this, please? Is there a particular bootloader binary I should put on this board that will work better than what's in my Arduino IDE? (Arduino 1.6.6/Linux 32-bit, if that helps.) re-burning the bootloader and then being able to upload a single sketch through the CH340G chip/USB port. I can seemingly repeat this over and over. However, if I connect an USBasp to the ICSP header and choose 'Burn Bootloader' from the Arduino IDE, then that seems to always succeed, and the next time I plug in the Arduino via the USB port, again I can program and upload ONE sketch - it refuses to accept new sketches after that. After that, I can't upload sketches anymore! When I first got it, I uploaded the 'Blink' sketch just to test it. (I suspect it being a clone since it doesn't have the six-pin header near the USB port, only a six-pin ICSP header next to the main Atmel chip.) I just ebayed what was called "NEW ATmega2560-16AU CH340G MEGA 2560 R3 Board" and am having some troubles with it. (Topic changed to better described the problem and let others know it got fixed.)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |