AnsweredAssumed Answered

Nand Flash, FSMC and ECC

Question asked by Mike on Jul 5, 2012
Latest reply on Jan 28, 2014 by francescato.diego
I'm using and external Samsung NAND Flash chip with an STM32F2 processor.  I have succeeded in writing a driver that can read, write, and erase the chip, but I'm a little confused about how to make use of the FSMC_ECCR2/3 register's value. 

I understand how and when to generate the ECC.  The Samsung NAND Flash has 2048 byte pages, so I have set the ECCPageSize to FSMC_ECCPageSize_2048Bytes.

The Reference Manual does not explain what algorithm is being used to compute the ECC, so how can I implement error correction in addition to error detection?

Outcomes