FAT problem
Moderator: Benj
- mikn
- Posts: 209
- Joined: Mon Mar 03, 2014 10:11 pm
- Has thanked: 54 times
- Been thanked: 41 times
- Contact:
Re: FAT problem
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..
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)
- 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
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.
Thanks for letting me know. I'm out the office today but will do some investigation and see if I can replicate the problem.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- mikn
- Posts: 209
- Joined: Mon Mar 03, 2014 10:11 pm
- Has thanked: 54 times
- Been thanked: 41 times
- Contact:
Re: FAT problem
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.
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)
- 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
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
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
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 528
- Joined: Sat Dec 01, 2012 1:23 pm
- Location: Sweden
- Has thanked: 49 times
- Been thanked: 101 times
- Contact:
Re: FAT problem
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
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
- mikn
- Posts: 209
- Joined: Mon Mar 03, 2014 10:11 pm
- Has thanked: 54 times
- Been thanked: 41 times
- Contact:
Re: FAT problem
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.
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.
FC 6.1.3.2 (18.02.2016)
-
- Posts: 528
- Joined: Sat Dec 01, 2012 1:23 pm
- Location: Sweden
- Has thanked: 49 times
- Been thanked: 101 times
- Contact:
- mikn
- Posts: 209
- Joined: Mon Mar 03, 2014 10:11 pm
- Has thanked: 54 times
- Been thanked: 41 times
- Contact:
Re: FAT problem
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.
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)