Thundercat
Well-known member
Hey all,
I've got a large program with a bunch of user presets that is eating up most of my 4284 bytes of EEPROM on a Teensy 4.1.
I've been researching up a storm but I admit this topic is a little overwhelming.
I understand that I can add an additional flash chip to the Teensy 4.1 (I've actually added PSRAM and Flash to a unit I have via soldering to the underpads).
However, what I'm not clear on is, can I use any of that additional flash memory to store configuration data as I would with EEPROM?
I know I can use the LittleFuse library but it doesn't seem suited to just holding random bytes of data here and there like you can with the onboard emulated EEPROM, although I suppose I could make some kind of text config file and write values and read them back using a CSV format. But this seems very awkward and amateurish - and very much not how this should be done.
So what would you do if you wanted to store, say, double or more the amount of data into the Teensy 4.1 EEPROM?
I also read some threads where it's possible to increase the existing onboard EEPROM emulation via code, but that this breaks the wear leveling feature which sounds risky. I'm not clear on how much it reduces wear leveling etc.
I realize this is a very simplistic question that probably has a lot of nuance and complexity to it; apologies; I've been reading for hours trying to understand it all and I'm not getting very far.
Thanks for any ideas and insights.
Mike
I've got a large program with a bunch of user presets that is eating up most of my 4284 bytes of EEPROM on a Teensy 4.1.
I've been researching up a storm but I admit this topic is a little overwhelming.
I understand that I can add an additional flash chip to the Teensy 4.1 (I've actually added PSRAM and Flash to a unit I have via soldering to the underpads).
However, what I'm not clear on is, can I use any of that additional flash memory to store configuration data as I would with EEPROM?
I know I can use the LittleFuse library but it doesn't seem suited to just holding random bytes of data here and there like you can with the onboard emulated EEPROM, although I suppose I could make some kind of text config file and write values and read them back using a CSV format. But this seems very awkward and amateurish - and very much not how this should be done.
So what would you do if you wanted to store, say, double or more the amount of data into the Teensy 4.1 EEPROM?
I also read some threads where it's possible to increase the existing onboard EEPROM emulation via code, but that this breaks the wear leveling feature which sounds risky. I'm not clear on how much it reduces wear leveling etc.
I realize this is a very simplistic question that probably has a lot of nuance and complexity to it; apologies; I've been reading for hours trying to understand it all and I'm not getting very far.
Thanks for any ideas and insights.
Mike