BCH-ECC algorithm
03:14 18 Jan 2026

https://github.com/Akshai-Muthu/bch-error-correction

In this link I have uploaded a bch.c file, where I'm trying to generate a ECC for input data and if any changes made to that data it can be corrected using decode algorithm, but what issue I face is instead of correcting the wrong bits it is flipping the bits in the adjacent bytes. It is locating the number f errors correctly but instead of flipping back that bits it is flipping back the bits in the adjacent bytes.

c error-handling