Hey 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_SD
I 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.
Hey 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 .
Maintaining a repository (or site or forum) is a lot like tending to a garden - it requires constant care and attention to keep it thriving. If you're a skilled gardener (or coder!) and want to help keep our repository blooming, we'd love to have you on board! We're also looking for talented writers and forum moderators to help us grow our community. Interested in joining our team? Don't hesitate to reach out and let us know how you can contribute!
Are you a fan of electronics or programming? Share your knowledge with others, write a simple tutorial or how to make a great project Contact me: share_your_ideas@mischianti.org
The content displayed on this website is protected under a CC BY-NC-ND license. Visitors are prohibited from using, redistributing, or altering any content from this website for commercial purposes, including generating revenue through advertising. Any unauthorized use is a violation of the license terms and legal action may be taken against individuals or entities found to be in violation.
You must also provide the link to the source.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.