I’m experimenting with LittleFS.
What does the function ‘LittleFS.begin()’ realy do?
PlatformIO gives me this:
bool fs::LittleFSFS::begin(
bool formatOnFail = false,
const char* basePath = "/littlefs", <== default values?
uint8_t maxOpenFiles = (uint8_t)10U,
const char* partitionLabel = "spiffs"
)
From this bit of information I understand that:
1.
bool formatOnFail = false, => LittleFS will format the complete ‘disk’ and all data will belost.
2.
basePath = “/littlefs” => this is a default value that’s used when this parameter is omitted.
3.
maxOpenFiles = (uint8_t)10U, => ibid
4.
partitionLabel = “spiffs” => ibid.
=> Also, that when there is no NAME = ‘spiffs’ key*value combination
=> in the partiontable the whole thing will not work.
Stated otherwise:
The partitiontable.csv must have a corresponding value, like so:
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 20480,
otadata, data, ota, , 8192,
app0, app, ota_0, , 1966080,
spiffs, data, spiffs, , 2097152,
coredump, data, coredump,, 65536,
Can you please confirm or deny this?