CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

how to write to the FAT in an MMC

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
f00dstamps



Joined: 28 Mar 2006
Posts: 10
Location: Kansas City, MO

View user's profile Send private message AIM Address

how to write to the FAT in an MMC
PostPosted: Sun Apr 16, 2006 11:55 am     Reply with quote

- i am able to write data to the data area in the MMC in 512 byte blocks.

- i am able to write data to the directory entry table in 32 byte blocks.

- however, i am unsuccessful in writing to the FAT(16) in 2 byte blocks.


i know that MMC requires writing in 512 byte blocks but how was i able to write to the directory table in 32 byte blocks? i'm in the process of putting the FAT entires 2 bytes at a time into a 512 byte buffer and then writing the entire 512 bytes.

there was also an issue about writing to the FAT in the location in the 1st byte AFTER the reserved bytes in the first 4 bytes of the FAT. because i couldn't write to the FAT1 address + 4 bytes (2 slots for reserved bytes), i offset the FAT writing by 512 bytes and it appears successful so far.

in conclusion, my question is, has anyone been successful in writing to the FAT 2 bytes at a time? it would make my code much easier to write.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group