MQX 4.1 FTP fails

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MQX 4.1 FTP fails

538 Views
dcantero
Contributor II

Hi!!

 

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:

 

12218_12218.jpgFTP_error.jpg

 

Some ideas about how to solve this issue? Do someone have an example code for FTP in MQX 4.1?   

 

Thanks in advance

 

David Cantero.

Original Attachment has been moved to: network_tsk.c.zip

0 Kudos
1 Reply

265 Views
Martin_
NXP Employee
NXP Employee

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.

0 Kudos