This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335X: Algorithm for NAND ECC calculation



Hi,

I have to pre-program NAND-Flash devices for use with AM335x Sitara processor. So I have to calculate the ECC-Data for the initial data. The GPMC is configured to use BCH-8 ECC á 512 data bytes.

I know the ECC data scheme layout but not the algorithm used to calculate the ECC data.

Where can I get the algorithm? (preferably c-code)