* 28F320S3
@ 2004-08-25 14:35 Gerhard TAEUBL
0 siblings, 0 replies; only message in thread
From: Gerhard TAEUBL @ 2004-08-25 14:35 UTC (permalink / raw)
To: linux-mtd
Hi!
I'm wondering if the mtd driver (cfi_cmdset_0001.c) really works?
I get sometimes the error that the drive is read only.
OK now my configuration:
Two 28F320S3 in parallel manner used as 32bit data device with an
MPC860T.
After looking at the code and put some Debug outputs into the code. It
seems, that the chip isn't fast enough, to set the bits in the status
register, because I got 00800082 (or 00820080). OK so thats right that I
got an error as read only device...
Then I look at the Status regsiter, and there you clear all other bits
beside the bit 7. If I dont mask all unneeded bits I run in troubles
while one block is erased and not suspended.
(if (status == status_OK)
break;)
Because bit 6 is still set and never cleared, so I get a timeout. I
modified this line again:
if ((status & ~0x00400040) == status_OK)
break;
So it works. Of course this mask has to be set up via CMD(0x40), but
does anyone else have such problems, or do you think that this
workaround won't work properly?
Please answer direct to my mail address, I'm not in the list.
br
Gerhard
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-08-25 14:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-25 14:35 28F320S3 Gerhard TAEUBL
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox