Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Nand write issue
PostPosted: Thu Nov 10, 2011 8:28 am 
Offline

Joined: Wed May 25, 2011 9:44 am
Posts: 32
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


Top
 Profile  
 
 Post subject: Re: Nand write issue
PostPosted: Thu Nov 10, 2011 4:00 pm 
Offline
User avatar

Joined: Wed May 12, 2004 6:59 pm
Posts: 161
Location: Bergamo, Italia
[quote="pj0585@gmail.com"]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.

[/quote]

How did you configure it?

_________________
Marco Cavallini
Koan s.a.s. - Bergamo - ITALIA
Embedded and Real-Time Software Engineering
- Atmel Third Party Consultant
Tel. +39-(0)35-255.235 - Fax +39-178-223.9748
http://www.KoanSoftware.com | http://www.KaeilOS.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: