Skip to contentSkip to conversation

AT91RM9200EK erase ATMEL dataflash

U-Boot-Users S. Dikhoff 2 participants 2 messages Jul 3, 2005 – Jul 4, 2005

lore
Share & tools
lore

S. Dikhoff

author
#0 lore raw

Hi,
I use u-boot-1.1.2 on an AT91RM9200EK board.
Does anybody knows how to erase the dataflash which is connected to the SPI?

I tried:

U-Boot1.1.2 > flinfo
DataFlash:AT45DB642

Nb pages:   8192
Page Size:   1056

Size= 8650752 bytes
Logical address: 0xC0000000
Area 0: C0000000 to C0007FFF
Area 1: C0008000 to C001FFFF
Area 2: C0020000 to C0027FFF
Area 3: C0028000 to C083FFFF

U-Boot1.1.2 > protect off c0000000 c001ffff Un-Protect 2 DataFlash Sectors
U-Boot1.1.2 > erase c0000000 c001ffff
Error: start and/or end address not on sector boundary

The copy of images with "cp.b" to this flash seems to work properly, even without erasing the flash before.
Regards
Sascha

#1 lore raw

"S. Dikhoff" <[email protected]> schreibt:

Quoted 4 lines

Does anybody knows how to erase the dataflash which is connected to the SPI?
U-Boot1.1.2 > erase c0000000 c001ffff
Error: start and/or end address not on sector boundary

Hi,
U-Boot does not support dataflash erase. You can emulate an erase by overwriting with FF (yes, it's possible, see below).

Quoted 4 lines

The copy of images with "cp.b" to this flash seems to work properly, even without erasing the flash before.

Thats because the Atmel dataflash does not need any explicit erase (see the datasheet for more details).

Cheers
Anders