Other Parts Discussed in Thread: AM3356, , UNIFLASH
Tool/software:
Hello,
We are developing a NAND flash image writer tool (similar to imagemergewizard) for our custom board based on TI AM3356/AM3358 SoC.
The NAND device we are using is: Micron MT29F8G08ABACAWP-IT:C
We understand that the AM335x NAND controller supports BCH16 ECC in hardware, and we need to generate BCH16 ECC codes,
in the same format as the TI ROM bootloader or Linux NAND driver would expect.
Could you please provide:
1. A reference C or C++ implementation of BCH16 ECC generation used in TI's ROM or NAND driver?
2. Documentation on how the ECC bytes are arranged in the OOB/spare area for BCH16 mode?
3. Any tools, APIs, or ROM specifications for generating BCH16 ECC out-of-system (offline ECC encoding)?
We are planning to pre-generate ECC and embed it into our image file.
Thank you!