SD-MMC writing FAT



Hi All,

I am starting some work that would be using an SD card (in MMC-SPI
mode) and I was hoping to use a PIC or similar low memory chip.

The idea was to use Lewin Edward's DOSFS (www.zws.com) as it only
requires about 1KB RAM.

The problem is that according to the SANDISK spec one can do sector
writes of 512 bytes, but that an erase will operate on 32 sectors. This
means that to update the directory or the FAT one needs to read out
16KB of data, do the erase, update the byte(s) in ram and write it all
back again. This 16K block won't fit in a PIC.

Have I misunderstood the requirements relating to SD / MMC for updating
a sector?

--Rocky

.



Relevant Pages

  • Re: SD-MMC writing FAT
    ... The problem is that according to the SANDISK spec one can do sector ... 16KB of data, do the erase, update the bytein ram and write it all ...
    (comp.arch.embedded)
  • Re: SD-MMC writing FAT
    ... The problem is that according to the SANDISK spec one can do sector ... 16KB of data, do the erase, update the bytein ram and write it all ...
    (comp.arch.embedded)
  • RE: Interesting One
    ... Aside from a sector by sector wipe of the ... Basically in a nut shell when you erase a file from your drive all you ... John Crowley (Maidstone) Ltd may be monitored. ...
    (Security-Basics)
  • Re: The Linear Address Space
    ... The virtual address space exists only inside the CPU. ... for as many addresses as there is RAM in the machine. ... > When a program needs to read a sector of data from a ... > and direct interfacing to hard drives is usually only done by the OS. ...
    (comp.lang.asm.x86)
  • Re: [SLE] swap space question in 9.3 install
    ... RAM has always been used to refer to internal memory. ... wait for the sector containing your data to pass under the ... heads, and then read that sector into internal memory, then extract your ...
    (SuSE)