28F320S3
Gerhard TAEUBL
Gerhard.TAEUBL at frequentis.com
Wed Aug 25 10:35:12 EDT 2004
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
More information about the linux-mtd
mailing list