Page 1 of 1

FAT Storage Partition - has to be 1M?

Posted: Wed May 17, 2017 8:07 am
by Fugazi
Hi

With the wear levelling example, does the fat partition have to be over a certain value?

I am only storing a 1K file so it would be good to have smaller, gives more space for OTA.

Smallest it seems to work with is around the 600K size.

When I change to a smaller partition size it complains

I (1216) cpu_start: Starting scheduler on APP CPU.
W (1216) vfs_fat_spiflash: f_mount failed (13)
I (1216) vfs_fat_spiflash: Formatting FATFS partition
E (1226) vfs_fat_spiflash: f_mkfs failed (14)
E (1236) example: Failed to mount FATFS (0xffffffff)

Thanks

Re: FAT Storage Partition - has to be 1M?

Posted: Wed May 17, 2017 8:45 am
by ESP_igrr
With 4k sector size, the smallest FAT partition size is 512K (128 sectors), plus 4 sectors used by WL, makes the minimum of 528K.

In the next version, we will support 512b logical sector size in WL, which will allow smaller partitions to be supported.

Re: FAT Storage Partition - has to be 1M?

Posted: Wed May 17, 2017 10:22 am
by Fugazi
Thank you for the reply, makes sense now :)