Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

4-bit ECC algorithm

Can anyone give a reference for a 4-bit ECC algorithm?

I need to implement one for an embedded Nand Flash driver.

like image 511
Shaihi Avatar asked Dec 06 '25 00:12

Shaihi


2 Answers

Your best bet is probably a Reed Solomon Code. Here is a pretty good explanation of how they work, and here is some code that actually implements the algorithm. It isn't commented very well, sorry about that. Some google action will turn up more.

Good luck.

like image 57
Adam Shiemke Avatar answered Dec 07 '25 19:12

Adam Shiemke


There are reference implementations readily available for NAND Flash. Check out the implementations in the U-boot and Linux kernel repos.

drivers/mtd/nand/ is the path you want in the repos.

like image 36
fastforward Avatar answered Dec 07 '25 17:12

fastforward