jjr-simiatec wrote on Monday, July 01, 2019:
Version: FreeRTOS-Plus-FAT-160919a-MIT
In ff_file.c: FF_Close() @ line 2970:
ffconfigFREE( pxFile );
if( FF_isERR( xError ) == pdFALSE )
{
xError = FF_FlushCache( pxFile->pxIOManager ); /* Ensure all modified blocks are flushed to disk! */
}
Fix: move ffconfigFREE(…) after the if block.