public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: bilahari <bilahari_akkiraju@yahoo.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Can I write to flash using mw command
Date: Wed, 11 Oct 2006 22:17:34 +0000 (UTC)	[thread overview]
Message-ID: <loom.20061011T225014-658@post.gmane.org> (raw)
In-Reply-To: 45264A79.1090600@smiths-aerospace.com

Hi, Jerry,
 
    Took your advice on flash addresses I should put 
into my command sequences with my current flash 
configuration (2 16-bit spansion s29GL064M chips
interleaved to form 32-bit flash system). You pointed me 
to the right direction, thanks. Although I couldnt 
succeed in manual manipulation of flash, I am able to 
do it programatically (I downloaded a free low level driver 
provided by spansion and used it with my code). And it 
works fine, just like u-boot driver (cfi_flash.c). For anyone
interested here is the link
http://www.spansion.com/support/drivers_software/index.html 
     
   But one thing that doesnt work with my code and also 
with u-boot is that if I want to write two different 
values to the same flash locationconsecutively 
( for example when I try to write 0x12 to flash address
0xff000000 and then write 0x34 to same flash address, 
u-boot gives me a message "flash not erased". 
My driver makes the program simply loop forever in a status
register polling loop, I guess).

Is it something natural with flash programming ?. 
Should I always erase the whole sector before I re-program 
a location ? (doesnt sound like a good approach to me), 
is it not possible to write consecutively as with 
the conventional memory?

Thanks for the help and the directions

Bilahari
     

  reply	other threads:[~2006-10-11 22:17 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 [this message]
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

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=loom.20061011T225014-658@post.gmane.org \
    --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