cancel
Showing results for 
Search instead for 
Did you mean: 

STM32+FAT+RAM disc

dimasusl
Associate II
Posted on April 14, 2009 at 12:01

STM32+FAT+RAM disc

2 REPLIES 2
dimasusl
Associate II
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).

relaxe
Associate II
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