You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the only way to adjust the available EEPROM size is to directly edit the core eeprom.h file directly. This makes sharing code that needs to adjust this difficult as it requires people manually changing their library files as well as needing to keep the modification when updated versions of Teensyduino are released.
Being able to adjust this as a compile option and make this configurable at a project level would make it MUCH easier to achieve this.
The change required to allow this is fairly trivial. Within the avr/eeprom.h file for any given core, the existing #defines for E2END simply need to be wrapped within an #ifndef block. Eg for Teensy 4:
Currently the only way to adjust the available EEPROM size is to directly edit the core
eeprom.h
file directly. This makes sharing code that needs to adjust this difficult as it requires people manually changing their library files as well as needing to keep the modification when updated versions of Teensyduino are released.Being able to adjust this as a compile option and make this configurable at a project level would make it MUCH easier to achieve this.
The change required to allow this is fairly trivial. Within the
avr/eeprom.h
file for any given core, the existing#defines
for E2END simply need to be wrapped within an#ifndef
block. Eg for Teensy 4:The E2END value can then be set at compile time with something like
-DE2END=0x2176
as a build flag.I have tested the above on Teensy 4 and it works perfectly and is considerably simpler than having to get people to modify the core files directly.
Is this something that would ever be considered for inclusion?
The text was updated successfully, but these errors were encountered: