-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clear EEPROM when uploading new code/burning bootloader #139
Comments
What I do for this is have a tools submenu to control the EESAVE fuse. Take a look at my cores to see how you can stitch together the bits if you have multiple submenus controlling an option in the same fuse. |
I do indeed mean uploading with ISP. |
What makes it awkward is that these are organized with a submenu to choose bootloader - and then he'd have an EEPROM save menu that was meaningless if bootloader is used - but a few words to say that would fit in the menu. OFC, if the bootloader could be made to clear eeprom, you could just use that version if clear EEPROM was selected - but there's only enough space left for 12 instruction words... so I don't think EEPROM clearing optiboot is possible! |
Huh! Note that the smallest boot sector on 64k+ parts is 1024b not 512, so on those, they could not only add an ersatz !EESAVE function, there would be room for EEPROM write, and you could probably even make ersatz !EESAVE detect whether the fuse is set and follow it so you wouldn't need two binaries! But that all depends on someone both capable of that work (I mean, it's not that hard, since EEPROM write is already available with a define - it'd just be the EEPROM clearing... but you need to be comfortable in the absence of any arduino training wheels). Making a working build environment in windows is a pain (heh, I should probably zip up the hideous monstrosity of a build environment that I use and share it). Actually, I'll bet I make the build environment much cleaner... with a little ingenuity I could even make it grab the latest toolchain installed via board manager and use that, so it wouldn't have to drag along 35mb+ of baggage... maybe next time I am about to embark on a bootloader modification campaign! |
This is more like an enhancement request than an issue.
I noticed that when I upload new code or burn new bootloader, EEPROM contents remain unchanged. Could clearing the EEPROM be added as an option in tools menu?
The text was updated successfully, but these errors were encountered: