Skip to main content
dimasusl
Associate II
April 14, 2009
Question

STM32+FAT+RAM disc

  • April 14, 2009
  • 2 replies
  • 728 views
Posted on April 14, 2009 at 12:01

STM32+FAT+RAM disc

    This topic has been closed for replies.

    2 replies

    relaxe
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 13:09

    To accomplish this, one can simply use DosFS and instead of remapping the ''DosFS_Read/Write'' to ''SDIO_Read/SDWrite'', just use any function you have to interface to your external memory (FSMC?).

    You probably understand that the only advantage of FAT(16/32) is portability to Windows machines? If you want to read or write data to ram, in an organised way, why not use a simple table like:

    [FileNumber, PartNumber, AdressStart, AdressStop]

    Where you can write to a large buffer, update the file end. If you are writting to an older file, then you can use the part number to implement a fragmentation management.

    Hope this helps.

    -Relaxe

    dimasusl
    dimasuslAuthor
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:09

    Hi everyone!

    Maybe someone did a project where there was support for FAT with a RAM (RAM disc)? I mean not memory cards (SD, MMC).