Please look at some hints regarding the NAND below.
Hope it helps.
1.
From section 36.5.6 (Reed-Solomon Error Correcting Code Engine) of the i.MX25
Reference Manual :
"The ECC is always calculated per 512 bytes. If memory with 2-Kbyte (or 4-Kbyte)
page size is used, the ECC is calculated 4 (or 8) times, respectively. NAND
Flash with larger page sizes is filled with repeated writes of 512 bytes data
followed by spare data:
512 bytes main + spare bytes + 512 bytes main + spare bytes + 512 bytes main +
spare bytes + ..."
ECC is always calculated for each 512-byte section separately.
2.
Table 36-4 (Spare Area Buffer Organization) of the RM shows the spare layout.
3.
The ECC algorithm may be found at MX25 Nand Flash Controller ECC generator polynomial -blog archive
Have a great day,
Yuri
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------