i have developed a LPC2388 based board which has an SPI Flash memory Chip. This Memory will be used as the USB MSC storage media. Also I want to put the FAT file system in this flash mem,and access the files stored. For this i am planning to use the KEIL RL-FlashFS Library. First of all,I want to know whether i can do all the above things. Has anybody worked on the RL_flashFS? What are the functions to be called to initialise the FAT file system in the SPI flash mem? i have tried using finit() and fformat()but the memory seems to be still uninitialised and i am not able to use the fopen / fclose function. the Controller justs hangs. I have made all the required changes for SPI flash mem access,fs_spi_ProgramPage() function and the FS_SPI_FlashDev.h header and the necessary changes in File_Config.h.Am i missing something? Please help Thanks, Vinaya
Yes, you are missing a lot. You are trying to use Embedded File System on SPI Flash and there is no FAT in Embedded File System.
Look at this link http://www.keil.com/support/man/docs/rlarm/rlarm_fs_usingmcard.htm
and read some more on FlashFS in Keil documentation.
As far as I can recall, only SD cards are formatted by FlashFS using a real FAT.
View all questions in Keil forum