Hello once again!
I’ve just added the format to my flow: here it is.
It can be found here if FF_format() requires a valid pxDisk, which can be done by executing FF_CreateIOManager( &xParameters, &xFFError ) first.
Note: all the above code is part of the FF_FlashDiskInit() that i show you before.
(refer to the code).
Here the line that FF_format() failed, e.g.
FF_format() call to FF_FormatDisk() -that is turn run :
—> if( xPartitionNumber >= xSet.xPartitionsFound.iCount )) , which is the issue:
it found that xSet.xPartitionsFound.iCount = 0.
It indicates that xSet.code.xPartitionsFound.iCount has to be set by some code before activating the format. Correct?
.
It appears from looking at the code that FF_PartitionSearch is one of the options that will accomplish this! but it will set the icount if it found somthing in the flash .got it !?
Which comes first, the chikning or the eggs?
so the conclution it that some code need to generate the partition before the format can be run. Correct?
I’m a little confused, but I appreciate your assistance.
Note: I make sure that the flash is erased (e.g. all valus are 0xFF) before running the test of the FF_format().
william
