2021-11-17 01:04 AM
Hi everyone
Im still dealing with nand flash and im at the ecc part now :).
I found a very good topic in ST but i still had questions and that topic was closed.
https://community.st.com/s/question/0D50X00009XkZjD/nand-flash-fsmc-and-ecc?t=1637138511900
There is a register that defines the ecc_page_size.
Tesla said that for 256 bytes ECC generates 3 bytes ECC.
When we config ecc_page_size to 2048 still ECC generate 3 bytes for these or it generates 24 bytes and gives us a pointer to read that (i think its not true because i didnt see any pointers in stm32 cube generated code).
The second question is that after write page we have to get_ecc from hardware to store in spare area and after read we have to get_ecc from hardware and read last ecc from spare to compare these two or not?
The last question is that how can i correct the data if error was detected?