Question
Nand Flash, FSMC and ECC
Posted on July 05, 2012 at 12:03
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? #ecc #fsmc-nand-ecc-stm32f2