[U-Boot-Users] flash memory access

Paul McAvoy paulmcav at queda.net
Sat Mar 1 22:25:17 CET 2003


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




More information about the U-Boot mailing list