Go to the source code of this file.
Defines | |
#define | NandCommon_MAXNUMBLOCKS 1024 |
#define | NandCommon_MAXNUMPAGESPERBLOCK 256 |
#define | NandCommon_MAXPAGEDATASIZE 4096 |
#define | NandCommon_MAXPAGESPARESIZE 128 |
#define | NandCommon_MAXSPAREECCBYTES 48 |
#define | NandCommon_MAXSPAREEXTRABYTES 78 |
#define | NandCommon_ERROR_NOMOREBLOCKS 1 |
#define | NandCommon_ERROR_BLOCKNOTMAPPED 2 |
#define | NandCommon_ERROR_OUTOFBOUNDS 3 |
#define | NandCommon_ERROR_NOBLOCKFOUND 4 |
#define | NandCommon_ERROR_MAPPINGNOTFOUND 5 |
#define | NandCommon_ERROR_CANNOTREAD 6 |
#define | NandCommon_ERROR_CANNOTWRITE 7 |
#define | NandCommon_ERROR_UNKNOWNMODEL 8 |
#define | NandCommon_ERROR_CORRUPTEDDATA 9 |
#define | NandCommon_ERROR_WRONGSTATUS 10 |
#define | NandCommon_ERROR_NOMAPPING 11 |
#define | NandCommon_ERROR_BADBLOCK 12 |
#define | NandCommon_ERROR_CANNOTERASE 13 |
#define | NandCommon_ERROR_CANNOTCOPY 14 |
#define | NandCommon_ERROR_ECC_NOT_COMPATIBLE 15 |
#define | NandCommon_ERROR_DMA 16 |
NandFlash Maximum Supported Values Since no memory allocation is available, limits have been set on various characteristics of a NandFlash chip:
Maximums
Definition in file NandCommon.h.
#define NandCommon_ERROR_BADBLOCK 12 |
The block being accessed is bad and must be replaced
Definition at line 118 of file NandCommon.h.
#define NandCommon_ERROR_BLOCKNOTMAPPED 2 |
The desired logical block has no current physical mapping.
Definition at line 88 of file NandCommon.h.
#define NandCommon_ERROR_CANNOTCOPY 14 |
A hardware copyback operation failed.
Definition at line 124 of file NandCommon.h.
#define NandCommon_ERROR_CANNOTERASE 13 |
Failed to perform an erase operation
Definition at line 121 of file NandCommon.h.
#define NandCommon_ERROR_CANNOTREAD 6 |
A read operation cannot be carried out.
Definition at line 100 of file NandCommon.h.
#define NandCommon_ERROR_CANNOTWRITE 7 |
A write operation cannot be carried out.
Definition at line 103 of file NandCommon.h.
#define NandCommon_ERROR_CORRUPTEDDATA 9 |
Page data is corrupted according to ECC
Definition at line 109 of file NandCommon.h.
#define NandCommon_ERROR_DMA 16 |
DMA failed.
Definition at line 130 of file NandCommon.h.
#define NandCommon_ERROR_ECC_NOT_COMPATIBLE 15 |
HW Ecc Not compatible with the Nand Model
Definition at line 127 of file NandCommon.h.
#define NandCommon_ERROR_MAPPINGNOTFOUND 5 |
The nandflash device has no logical mapping information on it.
Definition at line 97 of file NandCommon.h.
#define NandCommon_ERROR_NOBLOCKFOUND 4 |
There are no block having the desired property.
Definition at line 94 of file NandCommon.h.
#define NandCommon_ERROR_NOMAPPING 11 |
Device has no logical mapping stored in it
Definition at line 115 of file NandCommon.h.
#define NandCommon_ERROR_NOMOREBLOCKS 1 |
NandFlash Error Codes NandFlash API methods return either 0 (indicating that there was no error), or one of the following error codes:
NandCommon_ERROR_MAPPINGNOTFOUND
Definition at line 85 of file NandCommon.h.
#define NandCommon_ERROR_OUTOFBOUNDS 3 |
Access if out-of-bounds.
Definition at line 91 of file NandCommon.h.
#define NandCommon_ERROR_UNKNOWNMODEL 8 |
NandFlash chip model cannot be recognized.
Definition at line 106 of file NandCommon.h.
#define NandCommon_ERROR_WRONGSTATUS 10 |
Block is not in the required status.
Definition at line 112 of file NandCommon.h.
#define NandCommon_MAXNUMBLOCKS 1024 |
Maximum number of blocks in a device
Definition at line 50 of file NandCommon.h.
#define NandCommon_MAXNUMPAGESPERBLOCK 256 |
Maximum number of pages in one block
Definition at line 53 of file NandCommon.h.
#define NandCommon_MAXPAGEDATASIZE 4096 |
Maximum size of the data area of one page, in bytes.
Definition at line 57 of file NandCommon.h.
#define NandCommon_MAXPAGESPARESIZE 128 |
Maximum size of the spare area of one page, in bytes.
Definition at line 63 of file NandCommon.h.
#define NandCommon_MAXSPAREECCBYTES 48 |
Maximum number of ecc bytes stored in the spare for one single page.
Definition at line 66 of file NandCommon.h.
#define NandCommon_MAXSPAREEXTRABYTES 78 |
Maximum number of extra free bytes inside the spare area of a page.
Definition at line 69 of file NandCommon.h.