2008-09-25 12:01 AM
SD Card FAT16 read problem on PC
2008-09-21 04:32 AM
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.2008-09-25 12:01 AM
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.