public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
[parent not found: <20061005210314.40270.qmail@web33206.mail.mud.yahoo.com>]
* [U-Boot-Users] Can I write to flash using mw command
@ 2006-10-03 17:58 bilahari akkiraju
  2006-10-05 14:27 ` Ben Warren
  2006-10-05 14:42 ` Wolfgang Denk
  0 siblings, 2 replies; 16+ messages in thread
From: bilahari akkiraju @ 2006-10-03 17:58 UTC (permalink / raw)
  To: u-boot

Hello, 

 ->  On my target board I have a spansion GL064M flash
device. 

 -> The flash base address is 0xff000000. 

 -> I have read the data sheet for the device and
noted down the erase and write command sequences for
the device.

 -> I cannot erase, write to flash by implementing the
appropriate command sequences with mw (memory write )
command provided by u-boot that came with my sdk
(u-boot 1.1.4).

 For example 

  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

 For writing to address 0xff000000 I typed the
following write command sequence (as per data sheet)
at the u-boot prompt.

mw.b 0xff000555 0xAA
mw.b 0xff0002AA 0x55
mw.b 0xff000555 0xA0
mw.b 0xff000000 0x12  ; value 0x12
mw.b 0xff000001 0x34  ; value 0x34
mw.b 0xff000000 0xF0  ; reset (I do it as u-boot
driver cfi_flash.c does it )


  -> After doing all this , when I do a memory dump
using md.b 0xff000000 , to my frustration I see that
nothing at all has happend to the flash.

 I am sure I am missing something small or may be I am
doing a completely wrong thing. I am more of a
computer science guy and new to chip programming. Any
suggestions, ideas or comments would be very helpful.

Thanks you all


Bilahari

 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2006-10-12 23:19 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20061005230245.240F2353C4C@atlas.denx.de>
2006-10-06  3:36 ` [U-Boot-Users] Can I write to flash using mw command bilahari akkiraju
2006-10-06  8:13   ` Wolfgang Denk
2006-10-06 12:22   ` Jerry Van Baren
2006-10-11 22:17     ` bilahari
2006-10-11 22:44       ` Ben Warren
2006-10-11 22:48       ` Tolunay Orkun
2006-10-12  2:23         ` Tolunay Orkun
2006-10-12 11:58           ` Jerry Van Baren
2006-10-12 13:11             ` Wolfgang Denk
2006-10-12 17:55               ` Ben Warren
2006-10-12 23:19                 ` bilahari
     [not found] <20061005210314.40270.qmail@web33206.mail.mud.yahoo.com>
2006-10-05 21:50 ` Ben Warren
2006-10-05 22:59   ` Wolfgang Denk
2006-10-03 17:58 bilahari akkiraju
2006-10-05 14:27 ` Ben Warren
2006-10-05 14:42 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox