-
Documentation of fs_findFile() says:
Return value: Returns 0 when nothing was found, 1 when the thing found was a file and 2 if the thing found was a directory.
while, rmfile () checks only if return code of fs_findFile() is 1. I tried to modify line:
if((fs_findFile(fs,(eint8*)filename,&loc,0))==1){
with
if(fs_findFile(fs,(eint8*)filename,&loc,0)){ // finds files OR DIRs.
2009-10-31 13:25:19 UTC by pbocian
-
Documentation of fs_findFile() says:
Return value: Returns 0 when nothing was found, 1 when the thing found was a file and 2 if the thing found was a directory.
while, rmfile () checks only if return code of fs_findFile() is 1. I tried to modify line:
if((fs_findFile(fs,(eint8*)filename,&loc,0))==1){
with
if(fs_findFile(fs,(eint8*)filename,&loc,0)){ // finds files OR DIRs...
2009-10-31 13:22:54 UTC by pbocian
-
OK, everything is clear. I made wrong assumption, that cluster size is constant, but in Windows default is 4kB, and in mkfs_makevfat it's 16kB (for card 2 GB).
2009-10-31 13:13:03 UTC by pbocian
-
I had a similar problem (many random files about GBs size) and I changed line
for(c=32;c<(32+2*fs);c++){
with
for(c=32;c<(32+2*fs+C);c++){ // where C is number of Sectors/Cluster
This is to clear Root Directory.
2009-10-31 12:51:08 UTC by pbocian
-
Hello and thanks for great project.
However I have a following problem (EFS 2.8, AVR Atmega128):
After writing some files on SD card I check free space by function fat_countFreeClusters(&efs.myFs);
and I get proper value (usage about 3% of memory). Next, I format card by mkfs_makevfat(&efs.myPart);
and again check free space what tells me that usage is 74%. This value is still the...
2009-08-04 12:07:27 UTC by pbocian
-
Hello.
I trying to port EFSL to TMSf28335 and have some trobles
In this controller simple daty 16 bits and have not byte adressin.
Help with turnibg datatypes in type.h
/
EFSL init well and files create byt i can`t write to file or read from it.
2009-06-04 06:07:05 UTC by on4ip
-
Hi all!
I'm using EFSL and everything is working fine with normal size SD card. To minimize PCB size I have new PCB with micro SD slot. I have a problem which I'm trying to solve.
I'm using the microSD via SPI bus(Card supports that). TX from MCU is done by using DMA, block size is the familiar 512 bytes. Somehow the micro SD seems to be slower than normal size SD. My transfer function...
2009-05-18 05:03:13 UTC by ledmark
-
Hi,
I read a lot of messages in the forum, always the same problem: Delete directory.
But, I seems that doesn't exist a solution yet.
The admin affirm that rmfile deletes the directory, but this is not true.
Had someone fixed the code or implemented the function rmdir ?
Regards.
2009-04-27 14:27:21 UTC by elmaia
-
Hi Lennart,
Thanks for a nice product, and we would like to continue using and improving it but at the moment I am trying to get to the bottom of the licensing.
In this thread and others you have stated the license it GPL with eCos exception but the license file in 0.2.8 tar file is the LGPL and also the COPYING file in CVS in the efsl-0.2 folder. This makes it hard to convince others that...
2009-04-19 23:53:59 UTC by alan_wood
-
Hi All,
I just read an article on a german news site that Microsoft successfully sued TomTom which uses Linux on their GPS navigation systems and FAT for their SD card.
I thought that Microsoft lost the FAT patent (?), so it seems there is a legal problem in using FAT with EFSL...
What do you guys think about that?
Uli.
2009-03-31 16:02:02 UTC by uli96