cancel
Showing results for 
Search instead for 
Did you mean: 

SD Card FAT16 read problem on PC

cemal
Associate II
Posted on September 25, 2008 at 09:01

SD Card FAT16 read problem on PC

2 REPLIES 2
cemal
Associate II
Posted on September 21, 2008 at 13:32

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.

cemal
Associate II
Posted on September 25, 2008 at 09:01

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.