f00dstamps
Joined: 28 Mar 2006 Posts: 10 Location: Kansas City, MO
|
how to write to the FAT in an MMC |
Posted: Sun Apr 16, 2006 11:55 am |
|
|
- 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. |
|