rtel
(Richard Barry)
February 19, 2021, 5:02pm
2
These are the archives of those posts, but they relate to the FAT file system. I can download the code from these links too but the code is going to be old and probably obsolete.
FreeRTOS+TCP: Crash in FTP server if transfer socket cannot be createdPosted by jjr-simiatec on July 2, 2019Version: FreeRTOS+TCP distributed as part of FreeRTOS v10.2.1 File: FreeRTOSFTPserver.c, file version v2.03 In function prvTransferConnect(),...
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.