FatFs partition minimum size

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FatFs partition minimum size

1,701 次查看
biafra
Senior Contributor I

Hi everyone,

I use a multi partitioned device (4 MB dataflash) using f_fdisk() function.

Which is the minimum partition size that can be used?
It seems that if the partition size is below 1008 sectors (504 kB with 512 bytes sector size), the partition can't be created: is it right?

Is this a bug?

Many thanks
Biafra

2 回复数

1,316 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi biafra:

As far as I know, for FAT , the minimum driver size is 128 sectors with FM_SFD option. could you please let us know how to reproduce your issue?

Regards

Daniel

1,316 次查看
biafra
Senior Contributor I

Hi Daniel,

With FatFs 0.12c I use the following statements:

#define FORMAT_BUF_SIZE 2048

unsigned char FormatBuf[ FORMAT_BUF_SIZE ];
DWORD plist[] = { 0, 0, 0, 0 };


plist[ 0 ] = 7168; //disc A:
plist[ 1 ] = 734; //Disc B:

f_fdisk( 5, plist, FormatBuf ); //create partitions

f_mkfs( "B:", 1, 0, FormatBuf, FORMAT_BUF_SIZE );

Many thanks

Biafra