Files overwritten with MFS

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

Files overwritten with MFS

跳至解决方案
1,707 次查看
jonalvik
Contributor III


I have MFS mounted on a 32MB RAM device.

When creating and writing files I get a strange error, always the same error for same test set.

Test case:

- Create a directory

- write 63 files of 1KB named "a:\ev0\pc0" to "a:\ev0\pc62"

- read back and verify

Behavior:

- No error messages when creating and writing files

- before writing file "pc62" all files are present and ok.

- After writing file "pc62", file "pc46" is missing, size of "pc62" is 0 (fwrite reported 1KB)

- when listing files "pc62" is listed in the place "pc46" used to be"

The test is repeatable, also when varying file/directory names".

When extending the test to write larger number of files, the problem gets worse.

Is there some limitation to the number of files or naming of files?

My only idea so far is that this is some error inside MFS causing corruption.

/Jon

Using MQX 4.1.2

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
1,461 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Jon:

I think this issue is resolved in the latest MQX version, MQX4.2.0, with the MQX 4.2.0.2 patch, would you mind to check it?

Please download this package from the www.nxp.com/mqx

mqx.jpg

Regards

Daniel

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,461 次查看
jonalvik
Contributor III

Same test with 128 files:

file 46 and 111 goes missing

file 62 and 127 is size 0 and replaces 46 and 111 in file list

Same test with 256 files:

file 46,111, 176 goes missing

file 62, 127 and 192 is size 0 and replaces 46 and 111 in file list

Tried changing files size to 1500 bytes, same result.

Seems to be a pattern

0 项奖励
回复
1,462 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Jon:

I think this issue is resolved in the latest MQX version, MQX4.2.0, with the MQX 4.2.0.2 patch, would you mind to check it?

Please download this package from the www.nxp.com/mqx

mqx.jpg

Regards

Daniel

0 项奖励
回复
1,461 次查看
jonalvik
Contributor III

I will try your suggestion.

Do I need the 4.2.0.1 patch?

Jon

0 项奖励
回复
1,461 次查看
danielchen
NXP TechSupport
NXP TechSupport

No,  4.2.0.1 patch is included in 4.2.0.2

0 项奖励
回复