Hi,
I'm experiencing a very strange problem with NAND on a custom board I'm working on, based on DA850/OMAP-L138 LCDK. When I'm erasing the NAND with flash_erase or reading it with nanddump in a file, no problem, everything works fine. The problem is when I'm writing on it with nandwrite tool, only one page out of two is written. As a test, I'm writing a file containing only 0xAA. Of course, I erase the flash memory before. When I read the memory with nanddump in a file, I got :
AA AA AA AA AA .... (2048 bytes)
FF FF FF FF FF .... (2048 bytes)
AA AA AA AA AA .... (2048 bytes)
FF FF FF FF FF .... (2048 bytes)
....
The NAND I'm using is : Micron NAND 512MiB 3,3V 16-bit #MT29F4G08ABADAH4.
I can send you my code if you need it.
Thank you
Sylvain.