From: Tolunay Orkun <listmember@orkun.us>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Can I write to flash using mw command
Date: Wed, 11 Oct 2006 17:48:50 -0500 [thread overview]
Message-ID: <452D74D2.3080300@orkun.us> (raw)
In-Reply-To: <loom.20061011T225014-658@post.gmane.org>
bilahari wrote:
> 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
I guess Jerry guessed right how your flash chips are interfaced to the
CPU bus since you did not disclose the complete information before.
Without this information you cannot program the flash correctly.
> 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 ?.
Yes. With NOR flash devices erasing turns flash to all 1s. By write you
can turn 1s to 0s. But you cannot turn 0s to 1s without doing an erase
of the erase unit (block/sector).
> Should I always erase the whole sector before I re-program
> a location ? (doesnt sound like a good approach to me),
It does not sound that you have experience in embedded devices in
particular with flash parts. I suggest you do some reading to
familiarize yourself with the devices on your board. BTW, all this is
really not U-Boot related and off topic on the list.
> is it not possible to write consecutively as with
> the conventional memory?
It works as long as do not try to turn 1 bits to 0.
Best regards,
Tolunay
next prev parent reply other threads:[~2006-10-11 22:48 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
2006-10-11 22:44 ` Ben Warren
2006-10-11 22:48 ` Tolunay Orkun [this message]
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=452D74D2.3080300@orkun.us \
--to=listmember@orkun.us \
--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