Hi All,
I am writing a data logging firmware using dosfs. The size of data I am logging is more than 10Meg. I tested the firmware with 2G SD card and 4G SDHC card. Both of these cards are working properly. When I put these cards into my PC I can read the filenames and creation dates. However, when I tested the same firmware against a 8G SDHC card, after logging about 1Meg of data, the DFS_WriteFile return an Error. When I try to use my PC to read the card, it reported that the media is corrupted and won't open. I have to re-formate the card ( allocated unit size of 64K). I have formated the 8G SDHC in different allocated unit size and the problem appear to be different. On smaller unit size say 16K , the filenames and creation date are corrupted, I can read the directory but I cannot open the file.
Does anybody out there encounter the same problem? Can somebody give me some pointer where I should look at. I am quite sure it is dosfs that causes the problem.
Best regards and thank you on advance. Tony
--------------------------------------- Posted through