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.
Hi,
I'm having trouble configuring the NAND K9F5608U in FlashFS. The File_Config.c file has no configuration options for this memory. If I am not wrong, the setting should be:
Page size = 16384 + 512 bytes Block size = 32 pages Devise size = 2048 blocks
I have done work NAND K9F1G08U but my hardware requires K9F5608U (I'm using a LPC2478).
Some help?
Found the problem..
finit("N0: /FAT32"); // Error finit("N0: /fat32"); // Ok
File system working!
NAND drive can only be formatted with FAT12, FAT16 or FAT32 file system. You cannot format your device with FAT32 because it is to small (FAT32 volume requires at least 65,527 clusters of space).
if (fformat("N0:") == 0) { /* NAND drive formatted with FAT12 or FAT16 or FAT32 (depends on its size) */ } if (fformat("N0: /fat32") = 0) { /* NAND drive formatted with FAT12 or FAT16 (depends on its size) */ /* because FlashFS does not detect lowercase switch */ } if (fformat("N0: /FAT32") == 0) { /* NAND drive formatted with FAT32 */ }
Since size of your device is 32MB, it was most likely formatted using FAT16 ;)