|
Hi,
I'm working on a custom board design based on AT91SAM9G45-EKES. I have configured my linux 3.0.4 to work as 16 bit with my nand MT29F2G16ABD.
I write data to Nand using JTAG and then read back using my application and I can correctly read data.
When I write Data to the nand using my application, then my application reads back wrong data and JTAG is not able to read data from Nand.
I'm reading and writing to nand as a character device. I have monitored atmel_read_buf16() and atmel_write_buf16() in drivers/mtd/nand/atmel_nand.c and saw that atmel_write_buf16() is correctly sending the data that I want to write.
I send data to atmel_write_buf16() in chunks of 2048 bytes. atmel_read_buf16() always reads data in chunks of 256 bytes irrespective of whatever length I read.
Any clue what may be wrong?
-Pj
|