Creating and Adding several partitions to the file sytem in FreeRTOS

Hi karahulx,
Many thanks for you response,
If my SD driver has no partition and I want to create two partitions, must I use FF_Partition( pxDisk, &xPartition ); and FF_Format( pxDisk, partnumber, pdFALSE, pdFALSE ); in both pxDisk0 and pxDisk1 ? or only in one of them ?

I mean for example to do the following:

FF_Disk_t pxDisk0 = FF_SDDiskInit( / your SD driver init */ );
FF_Disk_t pxDisk1 = FF_SDDiskInit( / reinit for 2nd partition */ );

FF_Partition( pxDisk0, &xPartition ); /* in xPartition 2 partitions are configured for Partitioning */

FF_Format( pxDisk0, 0, pdFALSE, pdFALSE );
FF_Format( pxDisk0, 1, pdFALSE, pdFALSE );

pxDisk0->xStatus.bPartitionNumber = 0;
FF_FS_Add( pcName0, pxDisk0 );

pxDisk1->xStatus.bPartitionNumber = 1;
FF_FS_Add( pcName1, pxDisk1 );

Many thanks