possan / arduloop

6 stars 3 forks source link

Arduloop is overwriting the 16 EEPROM bytes reserved for Arduboy2's settings #3

Open Pharap opened 4 years ago

Pharap commented 4 years ago

The first 16 bytes of EEPROM are reserved by the Arduboy2 library for user settings. Evade is overwriting those first 16 bytes which causes a problem for users.

Would it be possible to fix the code so that it avoids overwriting those 16 bytes?

The Arduboy2 library provides the EEPROM_STORAGE_SPACE_START macro specifically for this purpose: https://mlxxxp.github.io/documents/Arduino/libraries/Arduboy2/Doxygen/html/Arduboy2_8h.html#adce5e39a6d5c9593a2119fb55d32976f

ace-dent commented 2 years ago

Little nudge ~

Unfortunately the EEPROM used overwrites some of the first 16 bytes, which is system reserved. There's a lot of info available on EEPROM usage (and collisions!) here. You might also want to look at the latest developments in extending support for the 'Arduboy2' library.