Epyon
Well-known member
Hi all
For a project I'm working on I require to store quite a bit of data on the Teensy's EEPROM. I calculated it to be 1830 bytes in total. However it looks like I'm running out of EEPROM space, while the T3.2 should have 2048 bytes available.
I use the default EEPROM lib and a struct to store my arbitrary variables:
The four last variables aren't retained in EEPROM during power cycles. When I move then up the ladder, before the big arrays, they do keep retained.
Is the T3.2's EEPROM not exactly 2kb, or does the EEPROM lib have too much overhead when storing arbitrary variable types?
For a project I'm working on I require to store quite a bit of data on the Teensy's EEPROM. I calculated it to be 1830 bytes in total. However it looks like I'm running out of EEPROM space, while the T3.2 should have 2048 bytes available.
I use the default EEPROM lib and a struct to store my arbitrary variables:
Code:
struct config_t{
//Configuration parameters
//IP
byte IPaddress[4];
boolean useDHCP;
//Wireless
char ssid[32];
char wifiPass[32];
//Server
char remoteAddress[64];
byte remoteIP[4];
int remotePort;
char remoteUser[32];
char remotePass[32];
//Slaves
byte slaveID[numSlaves];
unsigned int slaveRegs[numSlaves][numRegs];
char regNames[numSlaves][numRegs][8];
byte regType[numSlaves][numRegs];
//Pulse channels
int pulseWeight[numPulses];
char pulseNames[numPulses][8];
//Log variables
byte pollFreq;
byte uplFreq;
}configData;
Is the T3.2's EEPROM not exactly 2kb, or does the EEPROM lib have too much overhead when storing arbitrary variable types?