| Author | beginning argument ( Replies received: 1 ) |
| cemal.cicekdes |
Posted 21-09-2008 at 17:02   |

Registered on : 09-21-2009
Messages : 2
OFF-Line
|
Hi All,
I have been trying to create open a .TXT file on my 32MB Sandisk SD card using Olimex STR-P711 development board.Finally I have managed this using FAT16 but I have another problem.I can open/read/create a .TXT file but when I write into it, I cannot see what I have written into the file when I put it on my PC.It shows an EMPTY .TXT file and nothing written into it.Does anyone have an idea why could this be?
Thank you...
Regards,
P.S: I checked the buffer I am trying to write and it is not empty and after I create the file,I try to read it and it shows what I have written already.So I can write but my pc doesn't show.
|
|
|
Profile
Quote
|
| cemal.cicekdes |
Posted 25-09-2008 at 12:31   |

Registered on : 09-21-2009
Messages : 2
OFF-Line
|
Ok,I have solved my problem,it was because there was a bug in the compiler that sends a wrong sector address to update the directory table in FAT16.it wasn't updating the modified time,file size information etc. that's why my PC showed 0 Kb .TXT file.If you don't or can't update the directory table (correctly), you can not see what you have written.
|
|
|
Profile
Quote
|