SPRUIM2H May 2020 – October 2023 AM2431 , AM2432 , AM2434 , AM6411 , AM6412 , AM6421 , AM6422 , AM6441 , AM6442
The GPMC_ECC_CONFIG[3-1] ECCCS bit field selects the allocated chip-select. The GPMC_ECC_CONFIG[0] ECCENABLE bit enables ECC computation on the next detected read or write access to the selected chip-select.
The following fields must not be changed or cleared while an ECC computation is in progress:
The ECC accumulator and ECC result register must not be changed or cleared while an ECC computation is in progress.
Table 12-3229 describes the ECC enable settings.
| Bit Field | Register | Value | Comments |
|---|---|---|---|
| ECCCS | GPMC_ECC_CONFIG | 0–3 | Selects the chip-select where ECC is computed |
| ECC16B | GPMC_ECC_CONFIG | 0/1 | Selects column number for ECC calculation |
| ECCCLEAR | GPMC_ECC_CONTROL | 0–7 | Clears all ECC result registers |
| ECCPOINTER | GPMC_ECC_CONTROL | 0–7 | A write to this bit field selects the ECC result register where the first ECC computation is stored. Set to 1 by default. |
| ECCSIZE1 | GPMC_ECC_SIZE_CONFIG | 0x00–0xFF | Defines ECCSIZE1 |
| ECCSIZE0 | GPMC_ECC_SIZE_CONFIG | 0x00–0xFF | Defines ECCSIZE0 |
| ECCjRESULTSIZE (j from 1 to 9) | GPMC_ECC_SIZE_CONFIG | 0/1 | Selects the size of ECCn result register |
| ECCENABLE | GPMC_ECC_CONFIG | 1 | Enables the ECC computation |