FAT Storage Partition - has to be 1M?

Fugazi
Posts: 42
Joined: Wed Apr 26, 2017 9:05 pm

FAT Storage Partition - has to be 1M?

Postby Fugazi » Wed May 17, 2017 8:07 am

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

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

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

Postby ESP_igrr » Wed May 17, 2017 8:45 am

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.

Fugazi
Posts: 42
Joined: Wed Apr 26, 2017 9:05 pm

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

Postby Fugazi » Wed May 17, 2017 10:22 am

Thank you for the reply, makes sense now :)

Who is online

Users browsing this forum: No registered users and 160 guests