MFS file system limitation

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MFS file system limitation

1,269 次查看
netra
Contributor IV

I am trying to download 50 kb file through ftp .Ftp is getting corrupted .

Can anyone one tell me why?

I am using mqx 3.5 and mcf52259.

I have mounted file system on external flash .

标签 (1)
标记 (2)
0 项奖励
回复
3 回复数

967 次查看
Martin_
NXP Employee
NXP Employee

Hi netra,

my personal recommendation would be to use the latest Freescale MQX release, currently it is in version 4.0.1. Another general recommendation, always check return values (error codes) from MQX API functions. The error code may give some clue on what is going on. Try to mount the file system to a ramdisk. That would help to identify at least if a problem is in the RTCS application code or in the MFS application code (write to external flash).

967 次查看
netra
Contributor IV

Thanks for your reply. I am not getting any error but the content of file extracted through ftp is not having the content expected it has to be when total size of all the  files present in file system  is more than 60kb . Data present in file is incomplete.

e.g I have written in the file "MFS file system" but on extracting the file the content is only "MFS file".

As soon as I delete any other file and size is reduced and is less than 60kb .

I am receiving complete data that I am writing .

0 项奖励
回复

967 次查看
Martin_
NXP Employee
NXP Employee

Hi netra,

on 802.3 ethernet, there is CRC-32 calculated by the transmitting node and then again by the receiving node on each frame. If they don't match, the frame is discarded.

on FTP protocol, TCP is used, so the reception of all transmit frames is guaranteed by the TCP protocol.

Therefore, the issue sounds to me like a programming error. Over FTP, the data, that is sent, is also received. So, I guess the data corruption in payload occurs somewhere else. Either on server or client side. Maybe you can use a network protocol analyzer tool, like Wireshark, to capture FTP packets and check if they have expected data payload. If possible, try to minimize your application (disable some modules and tasks, like usb, or graphics etc) and see if it has positive effect.

0 项奖励
回复