Megacore bootloader issues

Hi, I just wanted to post this because I was trying to figure out what was causing my problem, and now that I have, I would like to share the solution for the next person. I was having problems with the megacore modules, trying to program an atmega2561, I needed to burn the bootloader to set the fuses properly, but it would always come back with an error. Turns out the problem was with the boards.txt file, the author added a feature that allows the option to save or overwrite the eeprom when reprogramming. They coded it like this:

2561.menu.bootloader.uart0.bootloader.high_fuses=b1101{bootloader.eesave_bit}110

which stitches together a binary byte, except avrdude wants its binary bytes to look like this

2561.menu.bootloader.uart0.bootloader.high_fuses=0b1101{bootloader.eesave_bit}110

with the leading 0 before b.

this fix worked, I'm not good enough with git to post the update to their repository, but I just wanted to put this out in the world so the next person googling the topic might find it.

Thanks for sharing your findings @smp4616!

smp4616:
I'm not good enough with git to post the update to their repository

OK, I went ahead and submitted the pull request to fix this issue on your behalf:

But really you should make some time one of these days to get comfortable with basic usage of GitHub. It's not something I would recommend to a beginner, since just the basics of Arduino alone is difficult enough when you're getting started, but you're clearly past that stage. It's really great how easy GitHub makes it to get involved with open source software projects.

And the PR is already merged (though the fix will only be available for manual installation until the next release of MegaCore).

Thanks for making the effort to make the world a little bit better of a place @smp4616!

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.