Latest esp-idf (VFS V2?) cannot be mounted after reboot
Posted: Wed Oct 24, 2018 5:36 pm
I Noticed that esp-idf has made some updates to VFS.
The filesystem seems to work (all files read as expected) after erase_flash and then flashing the fatfs image to the partition offset. But it does not persist a reboot (e.g. it cannot be mounted after reset button is toggled, or after a software triggered reboot)
I (2381) wl_flash: updateV1_V2 Update from V1 to V2, crc=0x0e06d47d,
I (2401) wl_flash: updateV1_V2 max_pos=505, pos=123, state.ver=1, state2.ver=1
and after reset
W (2572) vfs_fat_spiflash: f_mount failed (13)
I (2572) vfs_fat_spiflash: Formatting FATFS partition, allocation unit size=512
I (4792) vfs_fat_spiflash: Mounting again
All data lost((
The filesystem seems to work (all files read as expected) after erase_flash and then flashing the fatfs image to the partition offset. But it does not persist a reboot (e.g. it cannot be mounted after reset button is toggled, or after a software triggered reboot)
I (2381) wl_flash: updateV1_V2 Update from V1 to V2, crc=0x0e06d47d,
I (2401) wl_flash: updateV1_V2 max_pos=505, pos=123, state.ver=1, state2.ver=1
and after reset
W (2572) vfs_fat_spiflash: f_mount failed (13)
I (2572) vfs_fat_spiflash: Formatting FATFS partition, allocation unit size=512
I (4792) vfs_fat_spiflash: Mounting again
All data lost((