public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Write function for 16 bit NAND Flash
@ 2004-04-23  3:43 Shen Aaron-r62966
  2004-04-23  9:12 ` Thomas Gleixner
  0 siblings, 1 reply; 2+ messages in thread
From: Shen Aaron-r62966 @ 2004-04-23  3:43 UTC (permalink / raw)
  To: linux-mtd

Hi,

  I'm investigating to write boot code into an empty 16 bit NAND Flash. I met some problem, and if you have some experience, please be kindly to share with me.

  The current write program is for 8 bit NAND Flash(Samsung K9F5608Q0C) and is loaded by AXD. The flash is 32 page per block and 528(512+16) byte per page.  I use int type pointer to copy the boot data into the main area buffer of the flash. It's successful as I read back the data from the flash to verify.

  As the 16 bit NAND Flash(Samsung K9F5616Q0C) is also 32 page per block but 264(256+8) word per page, I try to use short int type pointer to copy. The data has truly been copied into the main area buffer of the flash. But after I read back it from the flash, it seems to be all 0xFFFF. Seems the data are not writen into the flash at all.

  Any comments and suggestion?

Thanks.
-Aaron.
  

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Write function for 16 bit NAND Flash
  2004-04-23  3:43 Write function for 16 bit NAND Flash Shen Aaron-r62966
@ 2004-04-23  9:12 ` Thomas Gleixner
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Gleixner @ 2004-04-23  9:12 UTC (permalink / raw)
  To: Shen Aaron-r62966, linux-mtd

On Friday 23 April 2004 05:43, Shen Aaron-r62966 wrote:
> Hi,
>
>   I'm investigating to write boot code into an empty 16 bit NAND Flash. I
> met some problem, and if you have some experience, please be kindly to
> share with me.
>
>   The current write program is for 8 bit NAND Flash(Samsung K9F5608Q0C) and
> is loaded by AXD. The flash is 32 page per block and 528(512+16) byte per
> page.  I use int type pointer to copy the boot data into the main area
> buffer of the flash. It's successful as I read back the data from the flash
> to verify.

int type pointer ? Surprise, surprise. Is the buswitdh set to 32 bit ?

>   As the 16 bit NAND Flash(Samsung K9F5616Q0C) is also 32 page per block
> but 264(256+8) word per page, I try to use short int type pointer to copy.
> The data has truly been copied into the main area buffer of the flash. But
> after I read back it from the flash, it seems to be all 0xFFFF. Seems the
> data are not writen into the flash at all.

Hmm. How do you apply the commands to the chip ?

-- 
Thomas
________________________________________________________________________
"Free software" is a matter of liberty, not price. To understand the concept,
you should think of "free" as in "free speech,'' not as in "free beer".
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx@linutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-04-23  9:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-23  3:43 Write function for 16 bit NAND Flash Shen Aaron-r62966
2004-04-23  9:12 ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox