Praveen1991
Newbie level 3
![Newbie level 3](/styles/images/ranks/alevel3.gif)
- 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![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
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![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
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..
Thanks