Code: Select all
E (657) wl_flash: initSections(269): result = 0x00000104
E (667) wl_flash: init(161): result = 0x00000104
E (667) wl_ext_safe: init(73): result = 0x00000104
E (667) wear_levelling: wl_mount: init instance=0x00000000, result=0x104
E (677) vfs_fat_spiflash: failed to mount wear levelling layer. result = 260
I try and set things up according to the wear leveling example:
Code: Select all
static wl_handle_t wlhnd = WL_INVALID_HANDLE;
const esp_vfs_fat_mount_config_t cfg = {
.max_files = 4, // Max OPEN files
.format_if_mount_failed = true
};
esp_err_t err = 0;
if ((err = esp_vfs_fat_spiflash_mount("/spiflash", "secure", &cfg, &wlhnd)) != ESP_OK) {
ESP_LOGE("storage", "failed to mount FAT, error %d", err);
}
Code: Select all
# Name, Type, SubType, Offset, Size, Flags
secure, data, fat, 0xa000, 0x3000, encrypted
EDIT: I should probably also mention that this is with a 512 sector set in the wear levelling component config, however I've had the same issue with 4096.