cancel
Showing results for 
Search instead for 
Did you mean: 

how to use stm32 ECCx register to correct nand flash error bit???

MVV.1
Associate II

I've got a "K9F1G08U0E" nand flash. I was trying to understand how to use the generated ECC in the STM32 MCU "ECCx register" to check the validity of data received from the NAND flash. but in the documentation there is no explanation on how to use the 28 bit ECC to correct 1 bit of error.

CAN SOMEONE HELP ME?

4 REPLIES 4
SBEN .2
Senior II

Hello @MVV.1​ ,

ECC is only applicable for embedded memories, not to external ones. Otherwise, nothing forbids implementing your custom solution for error correction in external memories but it would cost you in performance, energy consumption, etc...

Best regards,

@SBEN .2​ 

@MVV.1​ ,

Which STM32?

@SBEN .2​ ,

0693W00000BdaSmQAJ.pngJW

my MCU is STM32F407IGT6. I'm using my bank2.

actually I don't understand how to use the ECC "to correct" the bit.

just take a look at the reference manual of the MCU. there's a ECC register for things like that. (as waclawek.jan mentioned)