Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top