1
Luminary Micro TM LM3SXXXX / Missing defines in tftp.c
« on: November 03, 2010, 03:41:20 PM »
Hi Mark,
I added tftp support to my project and when I tried to build, I got a compile error at line 433.
uFileWrite(tftp_file_pointer, ucData, usDataLen SUBFILE_WRITE); // save the received data to file. Existing files will automatically be deleted
I traced the problem and found that the tftp.c file is missing the following lines (as seen in the ftp.c file):
#ifdef SUB_FILE_SIZE
#define SUBFILE_WRITE , ucSubFileInProgress
#define SUB_FILE_ON ,SUB_FILE_TYPE
#else
#define SUBFILE_WRITE
#define SUB_FILE_ON
#endif
When I added them, the project built successfully. Please confirm that these lines should be added to the tftp.c file.
On a different note, is there an ftp client? I can't seem to find any mention of an ftp client in utasker. I found the tftp client demo but no ftp client.
Best regards,
Mostafa
I added tftp support to my project and when I tried to build, I got a compile error at line 433.
uFileWrite(tftp_file_pointer, ucData, usDataLen SUBFILE_WRITE); // save the received data to file. Existing files will automatically be deleted
I traced the problem and found that the tftp.c file is missing the following lines (as seen in the ftp.c file):
#ifdef SUB_FILE_SIZE
#define SUBFILE_WRITE , ucSubFileInProgress
#define SUB_FILE_ON ,SUB_FILE_TYPE
#else
#define SUBFILE_WRITE
#define SUB_FILE_ON
#endif
When I added them, the project built successfully. Please confirm that these lines should be added to the tftp.c file.
On a different note, is there an ftp client? I can't seem to find any mention of an ftp client in utasker. I found the tftp client demo but no ftp client.
Best regards,
Mostafa