FatFs partition minimum size

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

FatFs partition minimum size

1,714件の閲覧回数
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,329件の閲覧回数
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,329件の閲覧回数
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