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
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
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