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.

AM3351: NAND Flash ECC Issue and Troubleshooting

Part Number: AM3351

Hi Team,

Posting on behalf of our customer.

I am writing to seek your urgent support regarding an issue I'm facing with NAND flash interfacing on AM335x-based board.
 
I have interfaced Micron MT29F2G08ABAEAWP NAND flash via the GPMC bus, and enabled BCH 8-bit ECC using the StarterWare library from TI using bare-metal software. While basic read/write operations are functional, I'm consistently observing data corruption when Large chunks of data are written and retained over time without powering on the system.
Upon inspecting I found that, ECC calculation results appear incorrect (ECC data always showing 0x00), and bit errors are not being corrected as expected.

I have verified the GPMC timing configuration, clock settings, and ECC enable sequence, but the issue persists. This raises concerns whether NAND driver implementation is fully aligned with the AM335x ECC hardware expectations and OOB layout.

I'm unable to attach the C codes for your reference. 
I'm writing a 2048 byte test data and reading back the same. I have printed initial 16 bytes of 512 byte blocks and corresponding ecc calculated. Screenshot and test data is shared.
ECC Debug.PNG

Regards,

Danilo