I have an application that uses FTP server on a SD CARD working in MQX 4.0 and I have updated the OS to 4.1 version. The FTP server has been improved in this OS version and I didn`t found the FTP example code (mfs_ftp in previous releases). I have built a test application based on a mfs_sd example (file system in a SD card) and HVAC demo code wich configure a FTP server. The code of the network task is a copy from the HVAC demo (see atached code file).
When I try to connect via FTP I obtained this error:
Some ideas about how to solve this issue? Do someone have an example code for FTP in MQX 4.1?
Thanks in advance
Original Attachment has been moved to: network_tsk.c.zip
There is example in rtcs/examples/shell. On the command line just start the FTP server "ftpsrv start". As file system it uses ramdisk file system mounted as "a:". The implementation of the ftpsrv start command is in the shell library (sh_ftpd.c).
If you are sure your file system on SD card is working, just configure it as the the root_dir parameter of the FTPSRV_PARAM_STRUCT.