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