FAT problem

A forums to allow bugs and problems with Flowcode v6 to be reported and resolved.

Moderator: Benj

User avatar
mikn
Posts: 209
Joined: Mon Mar 03, 2014 10:11 pm
Has thanked: 54 times
Been thanked: 41 times
Contact:

Re: FAT problem

Post by mikn »

Started at 9:05pm and device stuck on 10:20pm. Again on your control point.
And again, 3 fast write cycles and 4th longer and longer. When started it was same fast as others but minute by minute I noted that it writes longer and longer time. Seems to be the problem with writing every 2048th byte or kinda that. 3 cycles are ok (0-511, 512-1023,1024-1535) and 4th (1536-2047) has accumulating problem..
FC 6.1.3.2 (18.02.2016)

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: FAT problem

Post by Benj »

Hello Mikn,

Thanks for letting me know. I'm out the office today but will do some investigation and see if I can replicate the problem.

User avatar
mikn
Posts: 209
Joined: Mon Mar 03, 2014 10:11 pm
Has thanked: 54 times
Been thanked: 41 times
Contact:

Re: FAT problem

Post by mikn »

Any news on this?
FC 6.1.3.2 (18.02.2016)

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: FAT problem

Post by Benj »

Hello,

I've been somewhat sidetracked by some commercial services projects and training but hope to get some time to further investigate this issue this week.

User avatar
mikn
Posts: 209
Joined: Mon Mar 03, 2014 10:11 pm
Has thanked: 54 times
Been thanked: 41 times
Contact:

Re: FAT problem

Post by mikn »

Hello, Benj!

Any updates on this issue?
FC 6.1.3.2 (18.02.2016)

User avatar
mikn
Posts: 209
Joined: Mon Mar 03, 2014 10:11 pm
Has thanked: 54 times
Been thanked: 41 times
Contact:

Re: FAT problem

Post by mikn »

I have solved this issue. FAT component is not good for writing data streams, since it always reading and writing FAT and root sector (as I think).

I have wrote my own low-level macros using cal_spi and sd card commands. They also support fat32, but I've implemented the function to write stream. So now I have a way to write 10-20 times faster than standart FC6 FAT component.

Still don't know how to create standalone component to use it in different projects. Will learn some time and export it to public.
FC 6.1.3.2 (18.02.2016)

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: FAT problem

Post by Benj »

Hi Mikn,

That's great good thinking, you are right direct writes to the card will be a lot faster as you don't have to maintain the FAT file system tables. A component to do this would be really nice :D

hyperion007
Posts: 528
Joined: Sat Dec 01, 2012 1:23 pm
Location: Sweden
Has thanked: 49 times
Been thanked: 101 times
Contact:

Re: FAT problem

Post by hyperion007 »

Hi Mikn,

If you don't mind sharing your low level program (through PM if you don't want it public) I would like to have a look and maybe we can get a custom component made for it.

/Daniel S

User avatar
mikn
Posts: 209
Joined: Mon Mar 03, 2014 10:11 pm
Has thanked: 54 times
Been thanked: 41 times
Contact:

Re: FAT problem

Post by mikn »

Hi, the whole project is huge and FAT macros are closely implemented and connected to other macros.
I will try to cut FAT macros into separate blank project. Then you can use them to finalize the component. Now FAT macros use some variables and other macros from different parts of my project. Looks like ball of yarn. :D
FC 6.1.3.2 (18.02.2016)

hyperion007
Posts: 528
Joined: Sat Dec 01, 2012 1:23 pm
Location: Sweden
Has thanked: 49 times
Been thanked: 101 times
Contact:

Re: FAT problem

Post by hyperion007 »

Right, I can relate to that description all too well :)

User avatar
mikn
Posts: 209
Joined: Mon Mar 03, 2014 10:11 pm
Has thanked: 54 times
Been thanked: 41 times
Contact:

Re: FAT problem

Post by mikn »

Will work on FAT macros next week.
Now have to finish riding the MRF49XA, which problems I described here http://www.matrixtsl.com/mmforums/viewt ... 54&t=16097
Either support ignores me or no one works with this component at all and have nothing to say. I spend all the time trying to understand the issue. :(
FC 6.1.3.2 (18.02.2016)

Post Reply