Embedded FAT32 Filesystem for PIC18F

Status
Not open for further replies.

Praveen1991

Newbie level 3
Joined
Jan 31, 2013
Messages
3
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
Trivandrum
Activity points
1,306
HI guys,

Well to start with my project requires Data Logging , so i used a SDHC card interface PIC18 with SPI, and i can write raw data, no probs... but of course post logging analysis in WINDOWS is not possible, so I wrote a basic FAT32 implementation in ASSEMBLY, that does the following

1) Reads MBR and gets necessary Values for LBA calculations etc
2) Write a directory information ( A File (32 Byte record ) )
3) Updates both FAT1 and FAT2 tables

When i plug in the sdhc card, Windows recognizes the Created Files, but when i try to access it, it says Directory Corrupt or unreadable

I dont know where I am gng wrong..., Help appreciated O

PS : till now i havent added Date and Time details, will that be an issue?
PSS : Whats is the End Of File Marker ? I just use 0x0FFFFFFF to indicate a cluster allocation, I dont use EOF ( or probably I dont know.. ), if anyone can , pls explain about FAT1 FAT2 tables..

Thanks
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…