Skip to contentSkip to conversation

CFI flash – Problem with erasing boot block.

U-Boot-Users John_s (sent by Nabble.com) 2 participants 2 messages Jan 13, 2006

lore
Share & tools
lore
#0 lore raw

Hi All,

I am developing a CFI based flash driver. I can query the device and get all sector/block information. I am having problems erasing sectors 1, 2, 3 and 4 (bottom 64-KB), please the flash geometry below. The problem is that when I attempt to erase sectors 1, 2, 3, OR 4 I end up erasing sectors 1-4 . Not sure why this is happening.

I am able to erase the remaining sectors, sectors 5 through 19 individually without problems.

Here is flash?s geometry. I would appreciate your expert opinion as how to avoid this or even as it why it is happening. Thanks in advance.

Device: ST?s M29w800DB, Bottom boot block.

Sector 1 0x00000 ? 0x01fff
Sector 2 0x02000 ? 0x02fff
Sector 3 0x03000 ? 0x03fff
Sector 4 0x04000 ? 0x07fff -> First 64Kb boundary.
Sector 5 0x08000 ? 0x07fff -> All remaining sectors are 64 -Kb bulk sectors.
?????????????.
Sector 19 0x78000 ? 0x7ffff

- John

--
View this message in context: http://www.nabble.com/CFI-flash-Problem-with-erasing-boot-block.-t911704.html#a2364075
Sent from the Uboot - Users forum at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20060113/1560560f/attachment.htm

#1 lore raw
Quoted 2 lines · In message <[email protected]> you wrote:

I am developing a CFI based flash driver. I can query the device and get

Why are you doing this? Why aren't you just using the existing CFI driver?

Quoted 3 lines

------=_Part_191_16056191.1137167602496
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

And why the .... are posting HTML here? Don't do this!

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
It is easier to change the specification to fit the program than vice
versa.