Hi  Angelo & Wolfgang,

I can erase perfectly but can read perfectly.

One thing is that I can write some data in debug mode and without debug mode I 
cant write any bytes in flash.

You can see as follows:

-> md 0x40000

00040000: ffffffff ffffffff ffffffff ffffffff    ................
00040010: ffffffff ffffffff ffffffff ffffffff    ................
00040020: ffff6861 63743d46 45433000 65746861    ..hact=FEC0.etha
00040030: 6464723d 30303a65 303a3063 3a62633a    ddr=00:e0:0c:bc:
00040040: 65353a36 30006761 74657761 7969703d    e5:60.gatewayip=
00040050: 3139322e 3136322e 312e3100 686f7374    192.162.1.1.host
00040060: 6e616d65 3d4d3533 32394556 42006970    name=M5329EVB.ip
00040070: 61646472 3d313932 2e313632 2e312e32    addr=192.162.1.2
00040080: 006c6f61 643d7466 74702024 7b6c6f61    .load=tftp ${loa
00040090: 64616464 72292024 7b752d62 6f6f747d    daddr) ${u-boot}
000400a0: 006c6f61 64616464 723d3430 30313030    .loadaddr=400100
000400b0: 3030006d 656d3d33 32323536 6b006e65    00.mem=32256k.ne
000400c0: 74646576 3d657468 30006e65 746d6173    tdev=eth0.netmas
000400d0: 6b3d3235 352e3235 352e3235 352e3000    k=255.255.255.0.
000400e0: 70726f67 3d70726f 74206f66 66203020    prog=prot off 0 
000400f0: 33666666 663b6572 61203020 33666666    3ffff;era 0 3fff
-> erase 0x40000 0x5ffff

- Warning: 1 protected sectors will not be erased!
 done
Erased 1 sectors
-> protect off all

Un-Protect Flash Bank # 1
................................................................................................................................
 done
-> erase 0x40000 0x5ffff
. done
Erased 1 sectors
-> md 0x40000

00040000: ffffffff ffffffff ffffffff ffffffff    ................
00040010: ffffffff ffffffff ffffffff ffffffff    ................
00040020: ffffffff ffffffff ffffffff ffffffff    ................
00040030: ffffffff ffffffff ffffffff ffffffff    ................
00040040: ffffffff ffffffff ffffffff ffffffff    ................
00040050: ffffffff ffffffff ffffffff ffffffff    ................
00040060: ffffffff ffffffff ffffffff ffffffff    ................
00040070: ffffffff ffffffff ffffffff ffffffff    ................
00040080: ffffffff ffffffff ffffffff ffffffff    ................
00040090: ffffffff ffffffff ffffffff ffffffff    ................
000400a0: ffffffff ffffffff ffffffff ffffffff    ................
000400b0: ffffffff ffffffff ffffffff ffffffff    ................
000400c0: ffffffff ffffffff ffffffff ffffffff    ................
000400d0: ffffffff ffffffff ffffffff ffffffff    ................
000400e0: ffffffff ffffffff ffffffff ffffffff    ................
000400f0: ffffffff ffffffff ffffffff ffffffff    ................

(My comment: Without debug cant write.)

-> save 
Saving Environment to Flash...
. done
Un-Protected 1 sectors
Erasing Flash...!
. done
Erased 1 sectors
Writing to Flash...! done
. done
Protected 1 sectors
-> md 0x40000

00040000: ffffffff ffffffff ffffffff ffffffff    ................
00040010: ffffffff ffffffff ffffffff ffffffff    ................
00040020: ffffffff ffffffff ffffffff ffffffff    ................
00040030: ffffffff ffffffff ffffffff ffffffff    ................
00040040: ffffffff ffffffff ffffffff ffffffff    ................
00040050: ffffffff ffffffff ffffffff ffffffff    ................
00040060: ffffffff ffffffff ffffffff ffffffff    ................
00040070: ffffffff ffffffff ffffffff ffffffff    ................
00040080: ffffffff ffffffff ffffffff ffffffff    ................
00040090: ffffffff ffffffff ffffffff ffffffff    ................
000400a0: ffffffff ffffffff ffffffff ffffffff    ................
000400b0: ffffffff ffffffff ffffffff ffffffff    ................
000400c0: ffffffff ffffffff ffffffff ffffffff    ................
000400d0: ffffffff ffffffff ffffffff ffffffff    ................
000400e0: ffffffff ffffffff ffffffff ffffffff    ................
000400f0: ffffffff ffffffff ffffffff ffffffff    ................


(With debug I can write but first after 36 bytes.)

-> printenv

EXPORT  table = 41f7b0b4, htab.size = 107, htab.filled = 19, size = 0
Unsorted: n=19
          0: 41f181d4 ==> gatewayip  => 192.162.1.1
          1: 41f181e0 ==> stdout     => serial
          2: 41f182d0 ==> stderr     => serial
          3: 41f1830c ==> ipaddr     => 192.162.1.2
          4: 41f1836c ==> ethaddr    => 00:e0:0c:bc:e5:60
          5: 41f1839c ==> stdin      => serial
          6: 41f183cc ==> prog       => prot off 0 3ffff;era 0 3ffff;cp.b 
${loadaddr} 0 ${filesize};save
          7: 41f18414 ==> bootdelay  => 5
          8: 41f18480 ==> baudrate   => 115200
          9: 41f184a4 ==> hostname   => M5329EVB
         10: 41f184b0 ==> load       => tftp ${loadaddr) ${u-boot}
         11: 41f184e0 ==> serverip   => 192.162.1.1
         12: 41f184ec ==> loadaddr   => 40010000
         13: 41f1851c ==> mem        => 32256k
         14: 41f1854c ==> netdev     => eth0
         15: 41f18564 ==> u-boot     => u-boot.bin
         16: 41f185b8 ==> ethact     => FEC0
         17: 41f1860c ==> upd        => run load; run prog
         18: 41f18654 ==> netmask    => 255.255.255.0
baudrate=115200
bootdelay=5
ethact=FEC0
ethaddr=00:e0:0c:bc:e5:60
gatewayip=192.162.1.1
hostname=M5329EVB
ipaddr=192.162.1.2
load=tftp ${loadaddr) ${u-boot}
loadaddr=40010000
mem=32256k
netdev=eth0
netmask=255.255.255.0
prog=prot off 0 3ffff;era 0 3ffff;cp.b ${loadaddr} 0 ${filesize};save
serverip=192.162.1.1
stderr=serial
stdin=serial
stdout=serial
u-boot=u-boot.bin
upd=run load; run prog

Environment size: 432/8188 bytes
-> md 40000

00040000: ffffffff ffffffff ffffffff ffffffff    ................
00040010: ffffffff ffffffff ffffffff ffffffff    ................
00040020: ffffffff 63743d46 45433000 65746861    ....ct=FEC0.etha
00040030: 6464723d 30303a65 303a3063 3a62633a    ddr=00:e0:0c:bc:
00040040: 65353a36 30006761 74657761 7969703d    e5:60.gatewayip=
00040050: 3139322e 3136322e 312e3100 686f7374    192.162.1.1.host
00040060: 6e616d65 3d4d3533 32394556 42006970    name=M5329EVB.ip
00040070: 61646472 3d313932 2e313638 2e312e32    addr=192.168.1.2
00040080: 006c6f61 643d7466 74702024 7b6c6f61    .load=tftp ${loa
00040090: 64616464 72292024 7b752d62 6f6f747d    daddr) ${u-boot}
000400a0: 006c6f61 64616464 723d3430 30313030    .loadaddr=400100
000400b0: 3030006d 656d3d33 32323536 6b006e65    00.mem=32256k.ne
000400c0: 74646576 3d657468 30006e65 746d6173    tdev=eth0.netmas
000400d0: 6b3d3235 352e3235 352e3235 352e3000    k=255.255.255.0.
000400e0: 70726f67 3d70726f 74206f66 66203020    prog=prot off 0 
000400f0: 33666666 663b6572 61203020 33666666    3ffff;era 0 3fff


Why this happening I don't know.

Second things is like in flash_get_size() function it become portwidth = 1 
because of our M29W128GL has interface code = 2 (X8X16).

Please help me.

Thanks a lot.

-----Original Message-----
From: Angelo Dureghello [mailto:sysa...@gmail.com] 
Sent: Sunday, January 20, 2013 7:59 PM
To: u-boot@lists.denx.de
Cc: Ramesh K Khokhani
Subject: Re: [U-Boot] Flash Not Erased Problem with M29W128GL

Dear Ramesh,

i am using last u-boot form git / master.

You can get the file fome there, just go to u-boot site,
custodians, click "master", selct tree and click on the file.

Still, some questions:

How is the flash connected, as 8 or 16 bit data port ? Is the
flash connected stirght D0/D15 to D0/D15 of the cpu ?

Did you try to add the TIMEOUT config field, as i posted ?

Can you try to use the command "erase" and dump to see if
the flash can get erased ?

Regards,
Angelo

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~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