Configuration Options


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

NOR_MAN_ID

The identifier of the flash manufacturer. This is fixed at 0xC2 for this device, representing Macronix.

Note: The following three options are device ID words that represent this device type. Do not change any of these values unless you port this driver to support another similar chip.

NOR_DEV_ID

The default is 0x227E.

NOR_DEV_ID2

The default is 0x2221.

NOR_DEV_ID3

The default is 0x2201.

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

NOR_BLOCKSTART

The block start. Blocks before the specified NOR_BLOCKSTART are not used. The default is 0.

NOR_SECTORSIZE

The logical sector size. The default is 4096.

NOR_DESCSIZE

The descriptor size. The default is ( 16 * 1024 ).

NOR_CACHEDESCSIZE

The cache size. The default is ( 4 * 1024 ).

NOR_BLOCK_SIZE

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

NOR_NUM_BLOCKS

The number of blocks used by the file system. The default is 128.