forked from espressif/arduino-esp32
Converted EEPROM library to use nvs instead of partition. (#2678)
* Converted EEPROM library to use nvs instead of partition. Removed eeprom partition from all partition table CSV files. * Changed variable names, added some comments, formatting as per me-no-dev's requests * Checks for memory on malloc * Moved include nvs.h from header to code * Reworked the extra example to make it more clear how to actually use the library and persist data
This commit is contained in:
@ -3,5 +3,4 @@ nvs, data, nvs, 0x9000, 0x5000,
|
||||
otadata, data, ota, 0xe000, 0x2000,
|
||||
app0, app, ota_0, 0x10000, 0x140000,
|
||||
app1, app, ota_1, 0x150000,0x140000,
|
||||
eeprom, data, 0x99, 0x290000,0x1000,
|
||||
spiffs, data, spiffs, 0x291000,0x16F000,
|
||||
spiffs, data, spiffs, 0x290000,0x170000,
|
||||
|
|
@ -3,5 +3,4 @@ nvs, data, nvs, 0x9000, 0x5000,
|
||||
otadata, data, ota, 0xe000, 0x2000,
|
||||
app0, app, ota_0, 0x10000, 0x640000,
|
||||
app1, app, ota_1, 0x650000,0x640000,
|
||||
eeprom, data, 0x99, 0xc90000,0x1000,
|
||||
spiffs, data, spiffs, 0xc91000,0x36F000,
|
||||
spiffs, data, spiffs, 0xc90000,0x370000,
|
||||
|
|
@ -3,5 +3,4 @@ nvs, data, nvs, 0x9000, 0x5000,
|
||||
otadata, data, ota, 0xe000, 0x2000,
|
||||
app0, app, ota_0, 0x10000, 0x330000,
|
||||
app1, app, ota_1, 0x340000,0x330000,
|
||||
eeprom, data, 0x99, 0x670000,0x1000,
|
||||
spiffs, data, spiffs, 0x671000,0x18F000,
|
||||
spiffs, data, spiffs, 0x670000,0x190000,
|
||||
|
|
@ -3,5 +3,4 @@ nvs, data, nvs, 0x9000, 0x5000,
|
||||
otadata, data, ota, 0xe000, 0x2000,
|
||||
app0, app, ota_0, 0x10000, 0x140000,
|
||||
app1, app, ota_1, 0x150000,0x140000,
|
||||
eeprom, data, 0x99, 0x290000,0x1000,
|
||||
ffat, data, fat, 0x291000,0x16F000,
|
||||
ffat, data, fat, 0x291000,0x170000,
|
||||
|
|
@ -3,6 +3,5 @@ nvs, data, nvs, 0x9000, 0x5000,
|
||||
otadata, data, ota, 0xe000, 0x2000,
|
||||
app0, app, ota_0, 0x10000, 0x200000,
|
||||
app1, app, ota_1, 0x210000,0x200000,
|
||||
eeprom, data, 0x99, 0x410000,0x1000,
|
||||
ffat, data, fat, 0x411000,0xBEE000,
|
||||
ffat, data, fat, 0x410000,0xBEF000,
|
||||
# to create/use ffat, see https://github.com/marcmerlin/esp32_fatfsimage
|
||||
|
|
@ -2,5 +2,4 @@
|
||||
nvs, data, nvs, 0x9000, 0x5000,
|
||||
otadata, data, ota, 0xe000, 0x2000,
|
||||
app0, app, ota_0, 0x10000, 0x300000,
|
||||
eeprom, data, 0x99, 0x310000,0x1000,
|
||||
spiffs, data, spiffs, 0x311000,0xEF000,
|
||||
spiffs, data, spiffs, 0x310000,0xF0000,
|
||||
|
|
@ -3,5 +3,4 @@ nvs, data, nvs, 0x9000, 0x5000,
|
||||
otadata, data, ota, 0xe000, 0x2000,
|
||||
app0, app, ota_0, 0x10000, 0x480000,
|
||||
app1, app, ota_1, 0x490000,0x480000,
|
||||
eeprom, data, 0x99, 0x910000,0x1000,
|
||||
spiffs, data, spiffs, 0x911000,0x6EF000,
|
||||
spiffs, data, spiffs, 0x910000,0x6F0000,
|
||||
|
|
@ -3,5 +3,4 @@ nvs, data, nvs, 0x9000, 0x5000,
|
||||
otadata, data, ota, 0xe000, 0x2000,
|
||||
app0, app, ota_0, 0x10000, 0x1E0000,
|
||||
app1, app, ota_1, 0x1F0000,0x1E0000,
|
||||
eeprom, data, 0x99, 0x3D0000,0x1000,
|
||||
spiffs, data, spiffs, 0x3D1000,0x2F000,
|
||||
spiffs, data, spiffs, 0x3D0000,0x30000,
|
||||
|
|
@ -2,5 +2,4 @@
|
||||
nvs, data, nvs, 0x9000, 0x5000,
|
||||
otadata, data, ota, 0xe000, 0x2000,
|
||||
app0, app, ota_0, 0x10000, 0x140000,
|
||||
eeprom, data, 0x99, 0x150000, 0x1000,
|
||||
spiffs, data, spiffs, 0x151000, 0xAF000,
|
||||
spiffs, data, spiffs, 0x150000, 0xB0000,
|
||||
|
|
@ -2,5 +2,4 @@
|
||||
nvs, data, nvs, 0x9000, 0x5000,
|
||||
otadata, data, ota, 0xe000, 0x2000,
|
||||
app0, app, ota_0, 0x10000, 0x200000,
|
||||
eeprom, data, 0x99, 0x210000,0x1000,
|
||||
spiffs, data, spiffs, 0x211000,0x1EF000,
|
||||
spiffs, data, spiffs, 0x210000,0x1F0000,
|
||||
|
|
@ -2,5 +2,4 @@
|
||||
nvs, data, nvs, 0x9000, 0x5000,
|
||||
otadata, data, ota, 0xe000, 0x2000,
|
||||
app0, app, ota_0, 0x10000, 0x100000,
|
||||
eeprom, data, 0x99, 0x110000,0x1000,
|
||||
spiffs, data, spiffs, 0x111000,0x2EF000,
|
||||
spiffs, data, spiffs, 0x110000,0x2F0000,
|
||||
|
|
@ -2,6 +2,5 @@
|
||||
nvs, data, nvs, 0x9000, 0x5000,
|
||||
otadata, data, ota, 0xe000, 0x2000,
|
||||
app0, app, ota_0, 0x10000, 0x100000,
|
||||
eeprom, data, 0x99, 0x110000,0x1000,
|
||||
ffat, data, fat, 0x111000,0x2EF000,
|
||||
ffat, data, fat, 0x110000,0x2F0000,
|
||||
# to create/use ffat, see https://github.com/marcmerlin/esp32_fatfsimage
|
||||
|
|
@ -2,6 +2,5 @@
|
||||
nvs, data, nvs, 0x9000, 0x5000,
|
||||
otadata, data, ota, 0xe000, 0x2000,
|
||||
app0, app, ota_0, 0x10000, 0x200000,
|
||||
eeprom, data, 0x99, 0x210000,0x1000,
|
||||
ffat, data, fat, 0x211000,0x1EF000,
|
||||
ffat, data, fat, 0x210000,0x1F0000,
|
||||
# to create/use ffat, see https://github.com/marcmerlin/esp32_fatfsimage
|
||||
|
|
Reference in New Issue
Block a user