I am using this code to mount SPI flash Fat.
Code: Select all
esp_vfs_fat_mount_config_t mountConfig = { 0, true, CONFIG_WL_SECTOR_SIZE };
mountConfig.max_files = 3;
mountConfig.format_if_mount_failed = true;
mountConfig.allocation_unit_size = CONFIG_WL_SECTOR_SIZE;
ESP_LOGD(LOG_TAG, "FATFS_VFS::mount(%s,%s)", m_mountPath.c_str(), m_partitionName.c_str());
esp_vfs_fat_spiflash_mount(m_mountPath.c_str(), m_partitionName.c_str(), &mountConfig, &m_wl_handle);
fwrite("...." ... )
fwrite is taking long time. it causes esp_timer: timer queue overflow
fclose(file);
SD card fopen and fwrite is good. no issues.
Any idea why?
Thanks,
Naeem