Configuration Options


Set the configuration options in the file src/config/config_safe_nor_drv_spifi.h. This section lists the available options and their default values.

NOR_FIRST_PHY_BLOCK

The first physical block index to be used by the file system. The default is 0.

NOR_PAGE_SIZE

This is purely logical on NOR flashes. The default is 256.

Note:  For full instructions on how to set up the following five options, see the following sections in the HCC SafeFLASH File System NOR Drive User Guide: 

The following three parameters configure the blocks. The default usage is:

  • Blocks 0 - 1: two 64K blocks for descriptors.
  • Block 2 - 127: 126 64K blocks used for data storage.

NOR_DESC_SIZE

The descriptor block size. The default is 8192.

NOR_DESC_BLOCKS

The number of descriptor blocks. The default is 2.

NOR_CACHE_DESC_SIZE

The descriptor cache size. The default is 2048.

NOR_SECTORSIZE

The logical sector size. The default is 4096.

NOR_BLOCK_SIZE

The block size. The default is ( 64 * 1024).

NOR_SPIFI_UNIT

The SPIFI ID to use. The default is 0.