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

User avatar
brp80000
Posts: 138
Joined: Thu Oct 04, 2018 7:13 pm

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

Postby brp80000 » 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((

ESP_Dmitry
Posts: 2
Joined: Thu Oct 12, 2017 4:58 am

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

Postby ESP_Dmitry » Thu Oct 25, 2018 12:38 pm

Hi brp80000,

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

Regards,

Dmitry

User avatar
brp80000
Posts: 138
Joined: Thu Oct 04, 2018 7:13 pm

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

Postby brp80000 » Thu Nov 22, 2018 9:29 pm

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?

Who is online

Users browsing this forum: benrank, cdollar, Majestic-12 [Bot] and 123 guests