|
#define _MAX_SS 512 /* 512, 1024, 2048 or 4096 */
/* Maximum sector size to be handled.
/ Always set 512 for memory card and hard disk but a larger value may be
/ required for on-board flash memory, floppy disk and optical disk.
/ When _MAX_SS is larger than 512, it configures FatFs to variable sector size
/ and GET_SECTOR_SIZE command must be implememted to the disk_ioctl function. */
扇区的大小可以在这四个数字中选择吗?我用V3版本,将spi flash做成文件系统,能不能直接将扇区大小设置成4096,但我将其设定为4096的时候在底层驱动diskio.c中的读取一个扇区的函数中,读取后发现会进入硬件错误,是不是因为4096太大了,还是因为spi flash的缘故 |
|