33.4.1 MLC/SLC Write Page Operation using PMECC
When an MLC write page operation is performed, the PMECC controller is configured with the NANDWR bit in the Configuration register (PMECC_CFG) set to one. When the NAND spare area contains file system information and redundancy (PMECCx), the spare area is error protected, then PMECC_CFG.SPAREEN is set to ‘1’. When the NAND spare area contains only redundancy information, SPAREEN is set to ‘0’.
When the write page operation is terminated, the user writes the redundancy in the NAND spare area. This operation can be done with DMA assistance.
BCH_ERR Field | Sector Size Set to 512 Bytes | Sector Size Set to 1024 Bytes |
---|---|---|
0 | PMECC_ECC0 | PMECC_ECC0 |
1 | PMECC_ECC0, PMECC_ECC1 | PMECC_ECC0, PMECC_ECC1 |
2 | PMECC_ECC0, PMECC_ECC1, PMECC_ECC2, PMECC_ECC3 | PMECC_ECC0, PMECC_ECC1, PMECC_ECC2, PMECC_ECC3 |
3 | PMECC_ECC0, PMECC_ECC1, PMECC_ECC2, PMECC_ECC3, PMECC_ECC4, PMECC_ECC5, PMECC_ECC6 | PMECC_ECC0, PMECC_ECC1, PMECC_ECC2, PMECC_ECC3, PMECC_ECC4, PMECC_ECC5, PMECC_ECC6 |
4 | PMECC_ECC0, PMECC_ECC1, PMECC_ECC2, PMECC_ECC3, PMECC_ECC4, PMECC_ECC5, PMECC_ECC6, PMECC_ECC7, PMECC_ECC8, PMECC_ECC9 | PMECC_ECC0, PMECC_ECC1, PMECC_ECC2, PMECC_ECC3, PMECC_ECC4, PMECC_ECC5, PMECC_ECC6, PMECC_ECC7, PMECC_ECC8, PMECC_ECC9, PMECC_ECC10 |
BCH_ERR Field | Sector Size Set to 512 Bytes | Sector Size Set to 1024 Bytes |
---|---|---|
0 | 4 bytes | 4 bytes |
1 | 7 bytes | 7 bytes |
2 | 13 bytes | 14 bytes |
3 | 20 bytes | 21 bytes |
4 | 39 bytes | 42 bytes |