FreeRTOS+FAT is still in the lab
FreeRTOS+FAT is already in use in commercial products
and we encourage you to try it yourself. Be aware however that
FreeRTOS+FAT was acquired by Real Time Engineers Ltd., and is
still being documented and updated to
ensure it meets our strict quality standards.
Please use the forum for support,
or contact us directly if you have a specific business interest.
int ff_errno( void );
File related functions in the standard C library often return 0 for pass,
and -1 for fail. If -1 is returned then the reason for the failure is
stored in a variable called errno, which must be inspected separately.
FreeRTOS+FAT's standard stdio style interface maintains an errno variable
for each RTOS task. ff_errno() returns the errno value for the calling
The file system's C library style API uses the same errno values
as used by the stanard C library. These
are documented on a separate page.
The file system's native API
has a more sophisticated error code system, and
returns error codes directly from its API functions.
void vAFunction( FF_FILE *pxFile, long lOffset, int iWhence )
iReturned = ff_fseek( pxFile, lOffset, iWhence );
if( iReturned == 0 )
iReturned = ff_errno();
if( iReturned == pdFREERTOS_ERRNO_ESPIPE )
else if( iReturned == pdFREERTOS_ERRNO_EINVAL )
Example use of the ff_errno() API function