[U-Boot-Users] Can I write to flash using mw command

Wolfgang Denk wd at denx.de
Thu Oct 5 16:42:57 CEST 2006


In message <20061003175803.6392.qmail at web33213.mail.mud.yahoo.com> you wrote:
> 
>  ->  On my target board I have a spansion GL064M flash
> device. 

How is it attached? As a 8 bit device?

>  -> I cannot erase, write to flash by implementing the
> appropriate command sequences with mw (memory write )

Are you sure you use ther correct addresses and commands?

>   For erasing sector 0xff000000 I typed the following
> sector erase command sequence (as per data sheet) at
> u-boot prompt
> 
>  mw.b 0xff000555 0xAA
>  mw.b 0xff0002AA 0x55
>  mw.b 0xff000555 0x80
>  mw.b 0xff000555 0xAA
>  mw.b 0xff0002AA 0x55
>  mw.b 0xff000000 0x30

Are you really accessing an 8 bit device?

>  I am sure I am missing something small or may be I am
> doing a completely wrong thing. I am more of a

Also check if  your memory controller is set up correctly...

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
All repairs tend to destroy the structure, to  increase  the  entropy
and  disorder  of the system. Less and less effort is spent on fixing
original design flaws; more and more is spent on fixing flaws  intro-
duced by earlier fixes.       - Fred Brooks, "The Mythical Man Month"




More information about the U-Boot mailing list