Skip to content
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

Flashing bootloader erases EEPROM by default #6

Closed
snicker opened this issue Jan 23, 2013 · 1 comment
Closed

Flashing bootloader erases EEPROM by default #6

snicker opened this issue Jan 23, 2013 · 1 comment
Assignees
Labels

Comments

@snicker
Copy link

snicker commented Jan 23, 2013

Due to the fuses set in boards.txt, the EEPROM is erased when Ariadne is flashed onto the ATMega, not sure if this is intended functionality, but I made it a point to move EEPROM data "out of the way" of the Ariadne settings locations in the EEPROM only to find out it was erased anyways. Patch below maintains existing fuse settings but adds the "don't erase EEPROM" fuse flag

/hardware/ariadne/boards.txt
@@ -7,7 +7,7 @@
 ariadne328.upload.speed=115200

 ariadne328.bootloader.low_fuses=0xFF
-ariadne328.bootloader.high_fuses=0xD8
+ariadne328.bootloader.high_fuses=0xD0
 ariadne328.bootloader.extended_fuses=0x05
 ariadne328.bootloader.path=ariadne
 ariadne328.bootloader.file=ariadne_atmega328.hex
@@ -28,7 +28,7 @@
 ariadne328eth.upload.speed=115200

 ariadne328eth.bootloader.low_fuses=0xFF
-ariadne328eth.bootloader.high_fuses=0xD8
+ariadne328eth.bootloader.high_fuses=0xD0
 ariadne328eth.bootloader.extended_fuses=0x05
 ariadne328eth.bootloader.path=ariadne
 ariadne328eth.bootloader.file=ariadne_atmega328_ethernet.hex
@loathingKernel
Copy link

Yes, it is intended that way. It ensures that after a bootloader update everything will be written again in a proper way through the NetEERPOM sketches. This helps avoid any potential problems with relocated keys and settings.

Because upgrading the bootloader isn't something that happens all the time, i believe that this should be the default behavior, even though it is a minor inconvenience,

@ghost ghost assigned loathingKernel Jan 24, 2013
loathingKernel added a commit that referenced this issue May 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants