Page 1 of 1

Latest esp-idf (VFS V2?) cannot be mounted after reboot

Posted: Wed Oct 24, 2018 5:36 pm
by brp80000
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((

Re: Latest esp-idf (VFS V2?) cannot be mounted after reboot

Posted: Thu Oct 25, 2018 12:38 pm
by ESP_Dmitry
Hi brp80000,

Thanks for post.
The bug is fixed. A bugfix will be published soon.

Regards,

Dmitry

Re: Latest esp-idf (VFS V2?) cannot be mounted after reboot

Posted: Thu Nov 22, 2018 9:29 pm
by brp80000
Earlier in the debugging process I used hard reset and all fatfs content remained in place. Today I found that after powering down all fatfs content goes missing. Is this some kind of mistake or should it be?