NAND Flash Driver Tab


Use the NAND flash driver tab to calculate parameters for a NAND flash driver file system. The following parameters appear on this tab:

Parameter Description
#define FS_NAND_MAXFILE The maximum number of files that can be open simultaneously on the volume. This option is set in the file config_safe_nand.h.
#define FS_MAX_CACHEDE The maximum number of cacheable directory entries. This is defined in the file api_safe.h.
#define FS_MAXPATHNAME The maximum length of a pathname. This option is set in the file config_safe.h.
#define USE_TASK_SEPARATED_CWD Select 1 to give every task its own current working directory. This option is set in the file config_safe.h.
#define F_FILE_CHANGED_EVENT Select 1 to call a callback function when a file state changes. This option is set in the file config_safe.h.
#define HCC_UNICODE Select 1 to enable use of Unicode characters in file and path names. This option is set in the file config_safe.h.
#define FS_MAXDENAME The maximum size of a name in a base directory entry. This option is set in the file config_safe.h.
#define CRCONFILES Select 1 to enable CRC protection on files. This option is set in the file config_safe.h.
sizeof(oal_mutex_t) The size of the oal_mutex_t structure in bytes, if an RTOS is used.
flash>maxblock The number of data blocks (not descriptor blocks) that are available for file storage.
flash>blocksize The physical block size to use in the file storage area. This is an erasable unit of the flash chip. All blocks in the file storage area must be the same size.
flash>sectorsize The sector size for file allocation. Each block is divided into a number of sectors. The sector size is the smallest usable unit in the system so is the minimum file storage area. To make best use of the flash blocks, the sector size must be a power of two.
flash>separatedir The number of dedicated directory blocks.
flash>cachedpagenum Select this if the cache is used.

Do the following:

  1. Enter the parameter values.
  2. Click Calculate. The results are displayed as shown below:

  3. Make any required changes and click Calculate again. You can repeat this as many times as required.