From: Paul McAvoy Date: Sat, 1 Mar 2003 13:25:17 -0800 Subject: [U-Boot-Users] flash memory access In-Reply-To: <20030301114247.A9169@europa.queda.net>; from paulmcav@queda.net on Sat, Mar 01, 2003 at 11:42:47AM -0800 References: <20030301114247.A9169@europa.queda.net> Message-ID: <20030301132517.A14084@europa.queda.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hmm.. after more reading, I have found that in order to program _ANY_ of the flash on my atmel chip the following is the case: 1) the entire chip has to be erased, setting all bits to 1 2) any bytes can be programmed setting the bits to 0 This leads me to conclude that in order to program flash, I would have to copy the entire contents into memory, erase the chip, and then re-flash it. Does anyone else have this similar situation? How has it been dealt with? - Paul On Sat, Mar 01, 2003 at 11:42:47AM -0800, Paul McAvoy wrote: > Hi, I am having difficulties figuring out what is going on with my board > setup. > > I am able to read flash memory, set the write-protect on it okay, but when I > try to erase, or write flash memory, the system hangs. > > I run the command: > > > Saving Environment to Flash... > > int> Protect off 25080000 ... 2509FFFF > > Un-Protected 1 sectors > > Erasing Flash...Erasing sector 135/135 ... a > > (with some of my debug code in there) > > Flash memory starts for me at: 0x24000000 > I have an Atmel chip, 32Megbyts, 256 * 128K sectors. > > Reading through the manuals for the board, and the flash chip, I am unable to > find any relevant docs when it comes to erasing / writing issues. > > Anyone have any comments which might help me out in this situation? > > Thanks! > > - Paul > -- > PGP key - http://queda.net/paulmcav-gpg.txt