I'm saving some data (strings and integers) in flash memory of my ESP32 (and it works well) and I have the following addresse's to the respective data:
Code: Select all
#define MAX_EEPROM_LEN 100
#define EEPROM_LOC1 100
#define EEPROM_LOC2 200
#define EEPROM_LOC3 300
#define EEPROM_LOC4 400
#define EEPROM_LOC5 500
#define EEPROM_LOC6 600
#define EEPROM_LOC7 700
#define EEPROM_LOC8 800
#define EEPROM_LOC9 900
#define EEPROM_LOC10 1000
Code: Select all
#define EEPROM_LOC11 1100
#define EEPROM_LOC12 1200
I've tried to reduce the space between memory addresses, but it doesn't work anyway, it inserts in random slots that have already other data.
I found this :
With the ESP32 and the EEPROM library you can use up to 512 bytes in the flash memory. This means you have 512 different addresses, and you can save a value between 0 and 255 in each address position.
So... if I can use 512 different addresses, what is going wrong? :/