Home › Forums › The libraries hosted on the site › FTP Server (Simple and Multi) › Error compiling Wio_terminal_SdFat code in Arduino IDE.
Tagged: SimpleFTPServer, Wio terminal
- This topic has 2 replies, 2 voices, and was last updated 2 years ago by DR-DNK. 
- 
		AuthorPosts
- 
		
			- 
16 October 2023 at 13:57 #27848Hey Renzo !!!, 
 I am using SEEED SAMD Board v1.8.5 (Seeeduino wio terminal ) and I want to run SimpleFTPServer on it. I am running the given example code(wio_termianl_SdFat) in Arduino IDE .
 My library version for SimpleFTPServer is given below v2.1.6.Also my configuration for FtpServerKey.h are given below . 
 // Wio Terminal
 #define DEFAULT_FTP_SERVER_NETWORK_TYPE_SAMD NETWORK_SEEED_RTL8720DN
 #define DEFAULT_STORAGE_TYPE_SAMD STORAGE_SEEED_SDI am encountering the following error while compiling the code in Arduino IDE . Please help me to run this example code with Wio Terminal in Arduino IDE. Here are the error logs given below by Arduino Serial Monitor . 
 Also I have attached the file of the logs errors.txt in the attachments which shows the similar logs listed below .
 ————————————– LOGS —————————————————-In file included from /home/dnk126/Arduino/libraries/SimpleFTPServer/FtpServer.h:344:0, 
 from /home/dnk126/Arduino/libraries/SimpleFTPServer/examples/Wio_terminal_SdFat/Wio_terminal_SdFat.ino:15:
 /home/dnk126/Downloads/arduino-1.8.19-linux64/arduino-1.8.19/libraries/SD/src/SD.h:62:7: error: ‘Sd2Card’ does not name a type; did you mean ‘SdCard’?
 Sd2Card card;
 ^~~~~~~
 SdCard
 /home/dnk126/Downloads/arduino-1.8.19-linux64/arduino-1.8.19/libraries/SD/src/SD.h:63:7: error: ‘SdVolume’ does not name a type; did you mean ‘FsVolume’?
 SdVolume volume;
 ^~~~~~~~
 FsVolume
 /home/dnk126/Downloads/arduino-1.8.19-linux64/arduino-1.8.19/libraries/SD/src/SD.h:71:37: error: ‘SD_CHIP_SELECT_PIN’ was not declared in this scope
 boolean begin(uint8_t csPin = SD_CHIP_SELECT_PIN);
 ^~~~~~~~~~~~~~~~~~
 /home/dnk126/Downloads/arduino-1.8.19-linux64/arduino-1.8.19/libraries/SD/src/SD.h:71:37: note: suggested alternative: ‘SD_CHIP_SELECT_MODE’
 boolean begin(uint8_t csPin = SD_CHIP_SELECT_PIN);
 ^~~~~~~~~~~~~~~~~~
 SD_CHIP_SELECT_MODE
 In file included from /home/dnk126/Arduino/libraries/SimpleFTPServer/examples/Wio_terminal_SdFat/Wio_terminal_SdFat.ino:15:0:
 /home/dnk126/Arduino/libraries/SimpleFTPServer/FtpServer.h:348:20: error: reference to ‘File’ is ambiguous
 #define FTP_DIR File
 ^
 /home/dnk126/Arduino/libraries/SimpleFTPServer/FtpServer.h:584:20: note: in expansion of macro ‘FTP_DIR’
 bool openDir( FTP_DIR * pdir );
 ^~~~~~~
 In file included from /home/dnk126/Arduino/libraries/SimpleFTPServer/examples/Wio_terminal_SdFat/Wio_terminal_SdFat.ino:11:0:
 /home/dnk126/Arduino/libraries/SdFat/src/SdFat.h:458:16: note: candidates are: typedef class FsFile File
 typedef FsFile File;
 ^~~~
 In file included from /home/dnk126/Arduino/libraries/SimpleFTPServer/FtpServer.h:344:0,
 from /home/dnk126/Arduino/libraries/SimpleFTPServer/examples/Wio_terminal_SdFat/Wio_terminal_SdFat.ino:15:
 /home/dnk126/Downloads/arduino-1.8.19-linux64/arduino-1.8.19/libraries/SD/src/SD.h:28:9: note: class SDLib::File
 class File : public Stream {
 ^~~~
 In file included from /home/dnk126/Arduino/libraries/SimpleFTPServer/examples/Wio_terminal_SdFat/Wio_terminal_SdFat.ino:15:0:
 /home/dnk126/Arduino/libraries/SimpleFTPServer/FtpServer.h:348:20: error: ‘File’ has not been declared
 #define FTP_DIR File
 ^
 /home/dnk126/Arduino/libraries/SimpleFTPServer/FtpServer.h:584:20: note: in expansion of macro ‘FTP_DIR’
 bool openDir( FTP_DIR * pdir );
 ^~~~~~~
 In file included from /home/dnk126/Arduino/libraries/SimpleFTPServer/examples/Wio_terminal_SdFat/Wio_terminal_SdFat.ino:15:0:
 /home/dnk126/Arduino/libraries/SimpleFTPServer/FtpServer.h:597:15: error: expected ‘;’ at end of member declaration
 const char* getFileName(FTP_FILE *file){
 ^~~~~~~~~~~
 /home/dnk126/Arduino/libraries/SimpleFTPServer/FtpServer.h:597:36: error: expected ‘)’ before ‘*’ token
 const char* getFileName(FTP_FILE *file){
 ^
 In file included from /home/dnk126/Arduino/libraries/SimpleFTPServer/examples/Wio_terminal_SdFat/Wio_terminal_SdFat.ino:15:0:
 /home/dnk126/Arduino/libraries/SimpleFTPServer/FtpServer.h:347:21: error: reference to ‘File’ is ambiguous
 #define FTP_FILE File
 ^
 /home/dnk126/Arduino/libraries/SimpleFTPServer/FtpServer.h:651:22: note: in expansion of macro ‘FTP_FILE’
 uint32_t fileSize( FTP_FILE file );
 ^~~~~~~~
 In file included from /home/dnk126/Arduino/libraries/SimpleFTPServer/examples/Wio_terminal_SdFat/Wio_terminal_SdFat.ino:11:0:
 /home/dnk126/Arduino/libraries/SdFat/src/SdFat.h:458:16: note: candidates are: typedef class FsFile File
 typedef FsFile File;
 ^~~~
 In file included from /home/dnk126/Arduino/libraries/SimpleFTPServer/FtpServer.h:344:0,
 from /home/dnk126/Arduino/libraries/SimpleFTPServer/examples/Wio_terminal_SdFat/Wio_terminal_SdFat.ino:15:
 /home/dnk126/Downloads/arduino-1.8.19-linux64/arduino-1.8.19/libraries/SD/src/SD.h:28:9: note: class SDLib::File
 class File : public Stream {
 ^~~~
 In file included from /home/dnk126/Arduino/libraries/SimpleFTPServer/examples/Wio_terminal_SdFat/Wio_terminal_SdFat.ino:15:0:
 /home/dnk126/Arduino/libraries/SimpleFTPServer/FtpServer.h:347:21: error: ‘File’ has not been declared
 #define FTP_FILE File
 ^
 /home/dnk126/Arduino/libraries/SimpleFTPServer/FtpServer.h:651:22: note: in expansion of macro ‘FTP_FILE’
 uint32_t fileSize( FTP_FILE file );
 ^~~~~~~~
 /home/dnk126/Arduino/libraries/SimpleFTPServer/FtpServer.h:347:21: error: reference to ‘File’ is ambiguous
 #define FTP_FILE File
 ^
 /home/dnk126/Arduino/libraries/SimpleFTPServer/FtpServer.h:726:3: note: in expansion of macro ‘FTP_FILE’
 FTP_FILE file;
 ^~~~~~~~
 In file included from /home/dnk126/Arduino/libraries/SimpleFTPServer/examples/Wio_terminal_SdFat/Wio_terminal_SdFat.ino:11:0:
 /home/dnk126/Arduino/libraries/SdFat/src/SdFat.h:458:16: note: candidates are: typedef class FsFile File
 typedef FsFile File;
 ^~~~
 In file included from /home/dnk126/Arduino/libraries/SimpleFTPServer/FtpServer.h:344:0,
 from /home/dnk126/Arduino/libraries/SimpleFTPServer/examples/Wio_terminal_SdFat/Wio_terminal_SdFat.ino:15:
 /home/dnk126/Downloads/arduino-1.8.19-linux64/arduino-1.8.19/libraries/SD/src/SD.h:28:9: note: class SDLib::File
 class File : public Stream {
 ^~~~
 In file included from /home/dnk126/Arduino/libraries/SimpleFTPServer/examples/Wio_terminal_SdFat/Wio_terminal_SdFat.ino:15:0:
 /home/dnk126/Arduino/libraries/SimpleFTPServer/FtpServer.h:348:20: error: reference to ‘File’ is ambiguous
 #define FTP_DIR File
 ^
 /home/dnk126/Arduino/libraries/SimpleFTPServer/FtpServer.h:727:3: note: in expansion of macro ‘FTP_DIR’
 FTP_DIR dir;
 ^~~~~~~
 In file included from /home/dnk126/Arduino/libraries/SimpleFTPServer/examples/Wio_terminal_SdFat/Wio_terminal_SdFat.ino:11:0:
 /home/dnk126/Arduino/libraries/SdFat/src/SdFat.h:458:16: note: candidates are: typedef class FsFile File
 typedef FsFile File;
 ^~~~
 In file included from /home/dnk126/Arduino/libraries/SimpleFTPServer/FtpServer.h:344:0,
 from /home/dnk126/Arduino/libraries/SimpleFTPServer/examples/Wio_terminal_SdFat/Wio_terminal_SdFat.ino:15:
 /home/dnk126/Downloads/arduino-1.8.19-linux64/arduino-1.8.19/libraries/SD/src/SD.h:28:9: note: class SDLib::File
 class File : public Stream {
 ^~~~
 Multiple libraries were found for “FreeRTOS.h”
 Used: /home/dnk126/.arduino15/packages/Seeeduino/hardware/samd/1.8.5/libraries/Seeed_Arduino_FreeRTOS
 Not used: /home/dnk126/Arduino/libraries/Seeed_Arduino_FreeRTOS-master
 Multiple libraries were found for “Adafruit_ZeroDMA.h”
 Used: /home/dnk126/.arduino15/packages/Seeeduino/hardware/samd/1.8.5/libraries/Adafruit_ZeroDMA
 Not used: /home/dnk126/Arduino/libraries/Adafruit_Zero_DMA_Library
 exit status 1
 Error compiling for board Seeeduino Wio Terminal.Attachments:You must be logged in to view attached files.
- 
17 October 2023 at 18:34 #27877Hi, 
 I retest SdFat2 and standard SD, and works correctly.
 Check if you have some issues in the importing library at compile time.
 Bye Renzo
- 
18 October 2023 at 11:17 #27880Hey Renzo !!! 
 My error was solved . I think the problem was when I downloaded the SimpleFTPServer library in Arduino IDE , the below section was not commented in FTPServerKey.h file , while I was using the wio terminal configuration .// Arduino SAMD 
 #define DEFAULT_FTP_SERVER_NETWORK_TYPE_SAMD
 NETWORK_WiFiNINA
 #define DEFAULT_STORAGE_TYPE_SAMD STORAGE_SDAs and when I commented that section and compiled the code , no errors were found . Thank you Renzo for bearing with me . 
 
- 
- 
		AuthorPosts
- You must be logged in to reply to this topic.

 
 
																			


 
