Files overwritten with MFS

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

Files overwritten with MFS

Jump to solution
1,712 Views
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

Labels (1)
Tags (2)
0 Kudos
Reply
1 Solution
1,466 Views
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

View solution in original post

0 Kudos
Reply
4 Replies
1,466 Views
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 Kudos
Reply
1,467 Views
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 Kudos
Reply
1,466 Views
jonalvik
Contributor III

I will try your suggestion.

Do I need the 4.2.0.1 patch?

Jon

0 Kudos
Reply
1,466 Views
danielchen
NXP TechSupport
NXP TechSupport

No,  4.2.0.1 patch is included in 4.2.0.2

0 Kudos
Reply