Flash mount file system issue

I’m trying to mount a w25q64 onto the file system, but I’m encountering this issue where the device sector size is larger than the FAT sector size.

image

I followed online advice and changed the maximum sector size in the configuration to 4096, but I still get this error, and I’m not sure why.

image

Attached is my mounting code.

W25Q64_test.c (1.6 KB)

Which file is the screenshot of this macro?

Changed in menuconfig; I created a new program and found that the default here is 4096, then I tried it again and still got the same error.

image

I figured it out. I defined W25Q64_SPI_DEVICE_NAME as W25Q64, and the identical names caused a bug in:
rt_sfud_flash_probe(“W25Q64”, W25Q64_SPI_DEVICE_NAME)