public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: bilahari akkiraju <bilahari_akkiraju@yahoo.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Can I write to flash using mw command
Date: Tue, 3 Oct 2006 10:58:03 -0700 (PDT)	[thread overview]
Message-ID: <20061003175803.6392.qmail@web33213.mail.mud.yahoo.com> (raw)

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 

             reply	other threads:[~2006-10-03 17:58 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-03 17:58 bilahari akkiraju [this message]
2006-10-05 14:27 ` [U-Boot-Users] Can I write to flash using mw command Ben Warren
2006-10-05 14:42 ` Wolfgang Denk
     [not found] <20061005210314.40270.qmail@web33206.mail.mud.yahoo.com>
2006-10-05 21:50 ` Ben Warren
2006-10-05 22:59   ` Wolfgang Denk
     [not found] <20061005230245.240F2353C4C@atlas.denx.de>
2006-10-06  3:36 ` 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061003175803.6392.qmail@web33213.mail.mud.yahoo.com \
    --to=bilahari_akkiraju@yahoo.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox