public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] CFI, saveenv Flash no Erased
@ 2005-08-12 18:24 Scott McNutt
  2005-08-12 22:56 ` Tolunay Orkun
  0 siblings, 1 reply; 4+ messages in thread
From: Scott McNutt @ 2005-08-12 18:24 UTC (permalink / raw)
  To: u-boot

Hi All,
First, my thanks to the CFI developers -- great job!

With the erase and cp commands, the CFI flash driver seems just
fine. However, when I execute saveenv (env is in flash), I observe
"Flash not Erased".

I'm using AMDLV065D on a Nios-II board with the latest cfi_flash.c
(rev 1.18). In routine flash_write_cfiword (cfi_flash.c, line 1146),
flag == 0, indicating that the flash is not "(sufficiently) erased":

     flag = ((cptr.cp[0] & cword.c) == cword.c);

Adding a delay of about 500 msec corrects the problem, and I was able
to trace the bits changing (eventually) to 0xff with some hack code.

This is the first time I've worked with the CFI code, so I'm looking
for some guidance from someone familiar with the code on how to track
down the problem/potential solution & where I should focus my attention.

Thanks,
--Scott

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

end of thread, other threads:[~2005-08-15 17:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-12 18:24 [U-Boot-Users] CFI, saveenv Flash no Erased Scott McNutt
2005-08-12 22:56 ` Tolunay Orkun
2005-08-12 23:13   ` Wolfgang Denk
2005-08-15 17:04   ` Scott McNutt

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