No subject
reprsent a bit set 1 saying it is a 16 bit device. Now is this flash chipwidth or flash portwidth?
To my flash chip 16 data lines and 26 address lines are connected.
Quoted 1 line
Quoted 1 line
Perhaps a problem of incorrect unlocking addresses (byte vs. word
address)?
Does it mean that unlocking addresses are not correct? Supoose if chip is in word mode then what should be the portwidth and chipwidth? What will be the ublocking address then?
I am using an utilty to erase flash and to load uboot image and it is working fine, only that it copies data at multple locations.
Thanks & regards,
Prakash
Quoted 78 lines · Stefan Roese
Quoted 1 line · On Tuesday 13 April 2010 08:31:59 prakash bedge wrote:
I did it. :)
Good. But what did you change to make it work?
Quoted 1 line
I am now able to detect the flash. So now I can run the uboot commnads
i.e
Quoted 3 lines
flinfo to check the flash information.
For this I make use of ST fixup code for M29W128GH in which I changed the codition for chekcing chipwidth.Are you not using the mainline version of
cfi_flash.c? If not, which "fixup code" are you referring to (link)?Quoted 1 line
To detect the flash I used chipwidth 16 Bits and Portwidth 8 Bits.
Just checking to be sure: Are you using the Spansion chip in byte (8bit) or word (16bit) mode? All configurations I have used till now use the word mode
with this chip.And you really use 8 bit portwidth to access this chip in your SoC?
Quoted 2 lines
But now I am getting the problem in erasing on flash. I gave the erase command to erase the sector but then the sector is not getting erased and
I
Quoted 1 line
am getting the message as flash erased. Same is for chip erase command.
See
Quoted 1 line
the log below
<snip>
Quoted 3 lines
U-Boot $ *saveenv*
Saving Environment to Flash...
copy old content:sect_addr: FFFA0000env_addr: FFFA0000 offset:00000000
Quoted 18 lines
Protect off FFFA0000 ... FFFBFFFF
Un-Protecting sectors 509..509 in bank 1
Un-Protected 1 sectors
*Erasing Flash...Erase Flash from0xfffa0000to0xfffbffffin Bank # 1* fwc addrfffa0aaacmd aa aa 8bit x 8 bit
fwc addrfffa0555cmd 55 55 8bit x 8 bit
fwc addrfffa0aaacmd 80 80 8bit x 8 bit
fwc addrfffa0aaacmd aa aa 8bit x 8 bit
fwc addrfffa0555cmd 55 55 8bit x 8 bit
fwc addrfffa0000cmd 30 30 8bit x 8 bit*flash_is_busy: 0
done*
*Erased 1 sectors
Writing to Flash... Flash not Erased*
Protecting sectors 509..509 in bank 1
Protected 1 sectors
U-Boot $Quoted 1 line
Also, even by using BDI 3000 Debugger, I am not able to erase the flash
by
Quoted 10 lines
giving the proper CFI erase command.
mmb
0xfc0000000xf0
mmb0xfc000aaa0xaa
mmb0xfc0005550x55
mmb0xfc000aaa0x80
mmb0xfc000aaa0xaa
mmb0xfc0005550x55
mmb0xff7c00000x30Quoted 4 lines
But the data is still present.
What may be the reason that flash in not getting erased using U-boot as well as BDI debugger?
Hard to tell. Perhaps still a problem of a misconfigured external bus? Perhaps
a problem of incorrect unlocking addresses (byte vs. word address)?How did you program the U-Boot image into FLASH? Via the BDI3000 "prog" command? Is this working correctly?
Quoted 8 lines
Cheers,
Stefan--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de
--000e0cd17992e0906c04841cce50--