[U-Boot] [U-BOOT] cfi_flash.c fails to program NOR Flash SST39LF040

Stefan Roese sr at denx.de
Fri Jul 3 09:46:35 CEST 2009


Hi Po-Yu Chuang,

On Friday 03 July 2009 09:37:19 Po-Yu Chuang wrote:
> > SST39LF040 use addr1=0x5555 and addr2=0x2AAA, however, each sector is
> > 0x1000 bytes.
> >
> > Thus, if we issue command to "sector base (0x41000) + offset(0x5555)",
> > it sends to 0x46555 and the chip fails to recognize that address.
> >
> > I guess that SST39LF020 might suffer the same problem.
>
> How do you think about this?
> I can submit a patch for it.

Yes, I understand your problem and it needs to get fixed. But your original 
patch changed the unlock address not only for this "legacy" FLASH type but for 
all AMD type FLASH chips. And I'm not sure if this is correct. Meaning if the 
AMD/Spansion chips will accept these unlock addresses.

Perhaps you could check some data-sheets (some older and more recent Spansion 
CFI chips) which unlock addresses should be used here.

Thanks.

Best regards,
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
=====================================================================


More information about the U-Boot mailing list