CONFIG_WL_SECTOR_SIZE is overriding .allocation_unit_size

greg-dickson
Posts: 39
Joined: Sun Nov 01, 2020 1:51 am

CONFIG_WL_SECTOR_SIZE is overriding .allocation_unit_size

Postby greg-dickson » Mon Feb 24, 2025 8:07 am

CONFIG_WL_SECTOR_SIZE is overriding .allocation_unit_size in
esp_vfs_fat_spiflash_mount_rw_wl

sdkconfig

Code: Select all

#
# Wear Levelling
#
# CONFIG_WL_SECTOR_SIZE_512 is not set
CONFIG_WL_SECTOR_SIZE_4096=y
CONFIG_WL_SECTOR_SIZE=4096
# end of Wear Levelling
and

Code: Select all

CONFIG_FATFS_SECTOR_512=y
# CONFIG_FATFS_SECTOR_4096 is not set
and

Code: Select all

.allocation_unit_size = 512
in the esp_vfs_fat_mount_config_t

I am still getting

Mounting with .allocation_unit_size 512
W (1295) vfs_fat_spiflash: f_mount failed (13)
I (1295) vfs_fat_spiflash: Formatting FATFS partition, allocation unit size=4096

the allocation_unit_size and the CONFIG_FATFS_SECTOR variable are both ignored.

Who is online

Users browsing this forum: Bing [Bot] and 3 guests