We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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.
Thanks for the reply. Yes, i had overlooked this point. But is it possible to use the on-chip flash ? will it come under the category of 'NAND flash' which comes under the FAT file system media types? Thanks, Vinaya
You can read a bit through documentation but more or less options that you have are: 1. Embedded Flash - internal or external (SPI or parallel) flash 2. FAT on Memory Card - SPI or SD Card 3. FAT on NAND Flash 4. FAT on USB Mass Storage
On chip flash can only be used with Embedded Flash File System but it is then not compatible with FAT.
If you need only something like 1 file for bootloader or something, then best way is probably to generate FAT table and content manually.
Thanks for the information
does anyone know the answer to my question!
What is your question?