Code: Select all
esp_vfs_fat_spiflash_mount(PERM_STORE_MOUNT_POINT, STORAGE_LABEL,
&mount_config);
function , but if I switch to read only mode using the
Code: Select all
esp_vfs_fat_rawflash_mount(PERM_STORE_MOUNT_POINT, STORAGE_LABEL,
&mount_config);
function I get the following error: errno(2) = No such file or directory.
This is my config for the spiflash function:
Code: Select all
const esp_vfs_fat_mount_config_t mount_config = {
.max_files = 3,
.format_if_mount_failed = true,
.allocation_unit_size = CONFIG_WL_SECTOR_SIZE
};
Code: Select all
const esp_vfs_fat_mount_config_t mount_config = {
.max_files = 3,
.format_if_mount_failed = false,
};