This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3352: ECC BCH-8 algorithm calculation

Part Number: AM3352

Hello,

we are repairing test and measurement instruments that are based on Sitara AM3352BZCZ60 processors + NAND flash using ECC BCH-8 algorithm calculated
by GPMC and ELM of the processor. Sometimes NAND flash devices get faulty and need to be replaced, but it is essential to read out some important unit-specific calibration data from the device and program them to a new memory. For this reason I would need to be able to check/recalculate and ideally also fix corrupted bits from the old flash and transfer/programm them into new memory including ECC data. I learned from other threads that for this purpose there are tools available developed by TI named bin2nand and nand2bin that are able to calculate ECC using the same algorithm as AM3352BZCZ60 does. I managed to read out the faulty NAND flash memory and have several images, but they always differ in few bits which I need to correct or at least select the right block from images I have to correct faulty blocks and reconstruct the original image without errors. I learned that NAND flash uses pages of 2048 B data and 64 B for ECC/Spare Area. ECC are calculated from ech of four 512 B sections and stored as 13/14 B values in the spare area exactly as it is described in the reference manual (SPRUH73Q ,  Figure 26-20. ECC Data Mapping for 2 KB Page and 8b BCH Encoding). I need to be able to calculate exact values of ECC-A..D[0..12] and I believe bin2nand and nand2bin tools might do the job. Would it be possible kindly pelase to get these tools?

Thanks,
Peter.