FFS bad content in subdirectory

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

FFS bad content in subdirectory

959 Views
sandrobastos
Contributor IV

Hi all,

I'm using TWR-VF65GS10 with MQX and added FFS subsystem in order to work with a 'hard disk' on my NAND flash.

Everything seems to work fine but some times when I check a subdirectory content, it appear a lot of trash, like this:

shell>

shell> cd c:\

shell> dir

COCO.TXT           41 01-01-1980 00:00:00      A COCO.TXT

DIR1                0 01-01-1980 00:00:54     D  DIR1

FOO.BAR          1000 01-01-1980 00:01:24      A FOO.BAR

shell> cd dir1

shell>

shell> pwd

c:\dir1

shell>

shell> dir

pqrstuvw.xyz      1145258561      01-29-2011 07:33:54     DA pqrstuvw.xyz

EFGHIJKL.MNO 1684234849      02-29-2027 11:34:54     D  EFGHIJKL.MNO

efghijkl.mno        959985462      09-18-2005 06:09:32     DA efghijkl.mno

yz012345.678     1296845642      10-06-2015 08:42:08 R  VDA yz012345.678

NOPQRSTU.VWX      1835821930 11-06-2031 12:43:08 R  VD  NOPQRSTU.VWX

Note that the trash has some meaning, I mean, when we use the command 'Write' to fullfill a file, it wirtes sequential ASCII into the file, like this:

shell>

shell> read foo.bar

Reading from foo.bar:

0123456789:;<=>?@ABCDEFGHIJKLM

Done.

shell>

It seems to me the FFS is scrambling its FAT or something like this, it's messing up the file content with the dir content.

Please, any help?

rendy

BrunoCastelucci

karinavalencia

Labels (1)
Tags (3)
0 Kudos
Reply
2 Replies

805 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

Let me reproduce the problem. I will try to find out the problem too.

Best Regards,

Alejandro

805 Views
karina_valencia
NXP Apps Support
NXP Apps Support

rendy can you review this case?

0 Kudos
Reply