What do I miss?
./FreeRTOS-Plus-TCP/protocols/FTP/FreeRTOSFTPserver.c: In function 'prvSizeDateFile':
../FreeRTOS-Plus-TCP/protocols/FTP/FreeRTOSFTPserver.c:2322:27: error: 'FFStatt' has no member named 'stmtime'
timet secs = xStatBuf.st_mtime;
In function prvSizeDateFile
if( xSendDate != pdFALSE )
timet secs = xStatBuf.stmtime; <<------ no st_mtime
The "MDTM" command is quite essential to FTP. It needs support for time & date in +FAT.
So unless you have a good reason not to use it, I would enable it in your FreeRTOSFATConfig.h:
#define ffconfigTIME_SUPPORT 1
and also include the source file "ff_time.c".
I have several reasons why I try to remove it
1. I do not have RTC
2. I was trying to optimize footprint
2. I had the impresion that some "time" stuff drawn in from glibc. But I'm not sure.
I do not have RTC
But you dohave NTP :-)
What I often do is synchronise with NTP and use FreeRTOS to maintain the real time.
I was trying to optimize footprint
I'm not sure if it saves a lot of code. Have you calculated that?
I had the impression that some "time" stuff drawn in from glibc. But I'm not sure.
Not that I'm aware off. Several time-functions have been rewritten in order make it independent from the libraries provided by the compiler.
Now if you insist on not using time-support, I (or you) could make a change, remove the MDTM line from:
static const char pcFeatAnswer =
if( ffconfigTIME_SUPPORT != 0 )
" REST STREAM\x0a"
#if ffconfigTIMESUPPORT == 0
xLength = snprintf( pcCOMMANDBUFFER,
sizeof( pcCOMMAND_BUFFER ),
// return the time
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.