This is the HCC Embedded Product Documentation.

HCC Embedded Main Website   |   HCC Documentation Home Page

 

 

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


MT29FXG08_ECC_ID

The NAND ID. The default is ( ( 0x2C << 0 ) | ( 0xDC << 8 ) | ( 0x90 << 16 ) | ( 0x95 << 24 ) ).

MT29FXG08_ECC_BLOCK_NUM

The number of erasable blocks in the target flash array. The default is 4096.

MT29FXG08_ECC_PAGE_DATA_SIZE

The data area in bytes available on one page. The default is 2048.

MT29FXG08_ECC_PAGE_TOTAL_SIZE

The total size of the page, including the data and spare areas. The default is 2112.

MT29FXG08_ECC_PAGE_PER_BLOCK

The number of pages per erasable block. The default is 64.

MT29FXG08_ECC_FREE_BLOCK_AVAILABLE

The number of free blocks. The value must not exceed MDRIVER_FTL_MAX_FREE_BLOCKS. The default is 99.

MT29FXG08_ECC_LOG_BLOCK_AVAILABLE

The number of log blocks. The default is 6; do not set it below this.

MT29FXG08_ECC_NUM_OF_DIF_MAPBLOCK

The number of blocks used for mapping in the system.  The default is 2. The valid range is 1 to 16.

MT29FXG08_ECC_MAPBLOCK_SHADOW

The number of map shadow blocks. The default is 2.

The system may be more efficient if more map shadow blocks are used, but each additional block reduces the number of free blocks in the system.

MT29FXG08_ECC_RESERVED_BLOCKS

The number of reserved blocks, the blocks at the start of the flash area that driver should not use. The default is 0.

MT29FXG08_ECC_WEAR_STATIC_LIMIT

The maximum value that the difference between the maximum and minimum wear count can be. The default is 1024.

MT29FXG08_ECC_WEAR_STATIC_COUNT

The number of merge operations allowed before static wear checking must be run. The default is 128.

MT29FXG08_ECC_REWRITE_INTERVAL

The number of normal read/write operations allowed before a rewrite check must be run. The default is 512.

MT29FXG08_ECC_LL_TEST

Set this to 1 to enable driver testing. The default is 0.

MT29FXG08_ECC_SWITCH_ECC 

There are two settings:

  • 0 - ECC switching is not supported. It is switched on/off at time of manufacture and cannot be changed by software. Example: MT29F2G08ABAGAxx.
  • 1 (the default) - ECC can be switched on/off by using the software (see Feature Address 90h, Array Operation Mode).