Hi Angelo,

I am having problem with 16MB M29W128GL Flash. I am getting Flash Not Erased 
when i try to use saveenv command at u-boot command prompt.

I have tried manually Byte by Byte wise writing to NOR Flash location so for 
that i have use following command and getting 2 same byte write on consecutive 
location.

We have our custom board which uses MCF5329 Coldfire freescale's processor and 
16MB M29W128GL NOR Flash.

We have one M5329EVB evaluation board which has same processor but 2MB LHF00F31 
NOR Flash (16bit x 16bit). For this evaluation board we have LTIB packege 
provided by freescale and which has u-boot-2011.09 version.

This LTIB package we are using with some CFI CONFIG parameter changes. i.e. 
sector size, env offset add etc.

And when i have try to write word using mw.w then it writes correct.

Before use command:

-> md 0x50000

00050000: ffffffff ffffffff ffffffff ffffffff    ................
00050010: ffffffff ffffffff ffffffff ffffffff    ................
00050020: ffffffff ffffffff ffffffff ffffffff    ................
00050030: ffffffff ffffffff ffffffff ffffffff    ................
00050040: ffffffff ffffffff ffffffff ffffffff    ................
00050050: ffffffff ffffffff ffffffff ffffffff    ................
00050060: ffffffff ffffffff ffffffff ffffffff    ................
00050070: ffffffff ffffffff ffffffff ffffffff    ................
00050080: ffffffff ffffffff ffffffff ffffffff    ................
00050090: ffffffff ffffffff ffffffff ffffffff    ................
000500a0: ffffffff ffffffff ffffffff ffffffff    ................
000500b0: ffffffff ffffffff ffffffff ffffffff    ................
000500c0: ffffffff ffffffff ffffffff ffffffff    ................
000500d0: ffffffff ffffffff ffffffff ffffffff    ................
000500e0: ffffffff ffffffff ffffffff ffffffff    ................
000500f0: ffffffff ffffffff ffffffff ffffffff    ................

After use command: (Here i have try to write 0x12 on 0x50000 location but it 
writes two same bytes on 0x50000 & 0x50001)

-> mw.b 0x?50?aaa 0xaa

-> mw.b 0x50554 0x55

-> mw.b 0x50aaa 0xa0

-> mw.b 0x50000 0x12

-> md 0x50000

00050000: 1212ffff ffffffff ffffffff ffffffff    ................
00050010: ffffffff ffffffff ffffffff ffffffff    ................
00050020: ffffffff ffffffff ffffffff ffffffff    ................
00050030: ffffffff ffffffff ffffffff ffffffff    ................
00050040: ffffffff ffffffff ffffffff ffffffff    ................
00050050: ffffffff ffffffff ffffffff ffffffff    ................
00050060: ffffffff ffffffff ffffffff ffffffff    ................
00050070: ffffffff ffffffff ffffffff ffffffff    ................
00050080: ffffffff ffffffff ffffffff ffffffff    ................
00050090: ffffffff ffffffff ffffffff ffffffff    ................
000500a0: ffffffff ffffffff ffffffff ffffffff    ................
000500b0: ffffffff ffffffff ffffffff ffffffff    ................
000500c0: ffffffff ffffffff ffffffff ffffffff    ................
000500d0: ffffffff ffffffff ffffffff ffffffff    ................
000500e0: ffffffff ffffffff ffffffff ffffffff    ................
000500f0: ffffffff ffffffff ffffffff ffffffff    ................

When try to write word using mw.w then it writes correct:

-> md? ?w.w 0x50?aaa 0xaa

-> mw.w 0x50554 0x55

-> mw.w 0x50aaa ??xa0? ?

-> mw.w 0x500?10 0x1234

-> md 50000

00050000: 1212ffff ffffffff ffffffff ffffffff    ................
00050010: 1234ffff ffffffff ffffffff ffffffff    .4..............
00050020: ffffffff ffffffff ffffffff ffffffff    ................
00050030: ffffffff ffffffff ffffffff ffffffff    ................
00050040: ffffffff ffffffff ffffffff ffffffff    ................
00050050: ffffffff ffffffff ffffffff ffffffff    ................
00050060: ffffffff ffffffff ffffffff ffffffff    ................
00050070: ffffffff ffffffff ffffffff ffffffff    ................
00050080: ffffffff ffffffff ffffffff ffffffff    ................
00050090: ffffffff ffffffff ffffffff ffffffff    ................
000500a0: ffffffff ffffffff ffffffff ffffffff    ................
000500b0: ffffffff ffffffff ffffffff ffffffff    ................
000500c0: ffffffff ffffffff ffffffff ffffffff    ................
000500d0: ffffffff ffffffff ffffffff ffffffff    ................
000500e0: ffffffff ffffffff ffffffff ffffffff    ................
000500f0: ffffffff ffffffff ffffffff ffffffff    ................


So what may be problem?

Internally it uses following command (8bit x b bit). Is it problem? it should 
be 16bit x 8 bit?

fwc addr 00040aaa cmd aa aa 8bit x 8 bit
fwc addr 00040554 cmd 55 55 8bit x 8 bit
fwc addr 00040aaa cmd a0 a0 8bit x 8 bit


Thanks & Warm Regards,

Ramesh Khokhani
Senior Software Engineer

[%20]

...................................................................................................................................................

 ramesh.khokh...@igatepatni.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Disclaimer~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Information contained and transmitted by this e-mail is confidential and 
proprietary to iGATE and its affiliates and is intended for use only by the 
recipient. If you are not the intended recipient, you are hereby notified that 
any dissemination, distribution, copying or use of this e-mail is strictly 
prohibited and you are requested to delete this e-mail immediately and notify 
the originator or mailad...@igate.com <mailto:mailad...@igate.com>. iGATE does 
not enter into any agreement with any party by e-mail. Any views expressed by 
an individual do not necessarily reflect the view of iGATE. iGATE is not 
responsible for the consequences of any actions taken on the basis of 
information provided, through this email. The contents of an attachment to this 
e-mail may contain software viruses, which could damage your own computer 
system. While iGATE has taken every reasonable precaution to minimise this 
risk, we cannot accept liability for any damage which you sustain as a result 
of software viruses. You should carry out your own virus checks before opening 
an attachment. To know more about iGATE please visit www.igate.com 
<http://www.igate.com>.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to