public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tolunay Orkun <listmember@orkun.us>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] 16BIT SPANSION Flash writing problem with CFI Driver
Date: Sun, 19 Nov 2006 13:27:33 -0600	[thread overview]
Message-ID: <4560B025.2090403@orkun.us> (raw)
In-Reply-To: <20061119114343.18668.qmail@web15913.mail.cnb.yahoo.com>

Sam Song wrote:
>>> Bank # 1: CFI conformant FLASH (16 x 16)  Size: 8
>>> MB in 128 Sectors Erase timeout 16384 ms, write 
>>> timeout 0 ms, buffer write timeout 4096 ms, 
>>> buffer size 32
>>>       
>> Looks like your flash part does not support single
>> word writes via conventional interface 
>> (write timeout is 0). It must use buffered
>> writes. Did you enable buffer writes? You probably
>> did but just double checking...
>>     
>
> I didn't enable buffer writes. Once I defined
> CFG_FLASH_USE_BUFFER_WRITE, all save operations
> would encounter an error. Actually, I noticed
> it was unaccptable to enable buffer write for
> AMD flash.
>   

I guess you can implement CFG_FLASH_USE_BUFFER_WRITE for AMD style
flash. The details is in the datasheet. It should speed up the
programming anyway.

Here is the datasheet:
http://www.spansion.com/datasheets/s29gl-m_00_b6_e.pdf

Since you are able to write small amounts of data successfully, it means
that either timeout or status processing is not quite correct. For
non-buffered writes I believe the write timeout of 0 may be the problem.
Typically these values are set to 0 if the feature is not supported but
the datasheet gives program sequence as well. Please override the data
read from CFI regarding write timeout with a non zero value (say 1ms
timeout) and see what happens. Perhaps, they set the timeout to 0
because they want the process to be completely driven by DQ7 bits. When
timeout is 0 we might be bypassing the DQ7 toggle check so verify the
path is working as expected. Finally, they have toggle/operations
defined for other DQ bits in additon to DQ7. It might be necessary to
monitor other bits as well for a successful completion. You might need
to verify that as well.

Test your flash writes with debug turned off. Debugging code interferes
in my Intel flash boards and cp fails.

Good luck,
Tolunay

  reply	other threads:[~2006-11-19 19:27 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-17  8:16 [U-Boot-Users] u-boot hanging Ram
2006-11-17 12:00 ` [U-Boot-Users] 16BIT SPANSION Flash writing problem with CFI Driver Sam Song
2006-11-17 16:40   ` Tolunay Orkun
2006-11-19 11:43     ` Sam Song
2006-11-19 19:27       ` Tolunay Orkun [this message]
2006-11-20 10:48         ` Sam Song
2006-11-20 23:39           ` Tolunay Orkun
2006-11-21  0:20             ` Andrew Dyer
2006-11-21  0:47               ` Andrew Dyer
2006-11-21  0:49               ` Tolunay Orkun
2006-11-21 13:25                 ` Sam Song
2006-11-21  0:52               ` Wolfgang Denk
2006-11-17 21:12 ` [U-Boot-Users] u-boot hanging Wolfgang Denk
2006-11-20  6:09   ` Ram
  -- strict thread matches above, loose matches on Subject: below --
2006-11-20 11:10 [U-Boot-Users] 16BIT SPANSION Flash writing problem with CFI Driver Bastos Fernandez Alexandre
2006-11-20 10:55 ` Sam Song

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4560B025.2090403@orkun.us \
    --to=listmember@orkun.us \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox