Specifications

5.9.3.3. erase - erase FLASH memory
Note: Included topic DULGData_m28.UBootEraseHelp does not exist yet
The erase command (short: era) is used to erase the contents of one or more sectors of the flash memory. It
is one of the more complex commands; the help output shows this.
Probably the most frequent usage of this command is to pass the start and end addresses of the area to be
erased:
Note: Included topic DULGData_m28.UBootEraseStartEnd does not exist yet
Note that both the start and end addresses for this command must point exactly at the start resp. end
addresses of flash sectors. Otherwise the command will not be executed.
Another way to select certain areas of the flash memory for the erase command uses the notation of flash
banks and sectors:
Technically speaking, a bank is an area of memory implemented by one or more memory chips that are
connected to the same chip select signal of the CPU, and a flash sector or erase unit is the smallest area that
can be erased in one operation.
For practical purposes it is sufficient to remember that with flash memory a bank is something that eventually
may be erased as a whole in a single operation. This may be more efficient (faster) than erasing the same area
sector by sector.
[It depends on the actual type of flash chips used on the board if such a fast bank erase algorithm exists, and
on the implementation of the flash device driver if is actually used.]
In U-Boot, flash banks are numbered starting with 1, while flash sectors start with 0.
To erase the same flash area as specified using start and end addresses in the example above you could also
type:
Note: Included topic DULGData_m28.UBootEraseSectors does not exist yet
To erase a whole bank of flash memory you can use a command like this one:
Note: Included topic DULGData_m28.UBootEraseBank does not exist yet
Note that a warning message is printed because some write protected sectors exist in this flash bank which
were not erased.
With the command:
Note: Included topic DULGData_m28.UBootEraseAll does not exist yet
the whole flash memory (except for the write-protected sectors) can be erased.
5.9.3.4. protect - enable or disable FLASH write protection
Note: Included topic DULGData_m28.UBootProtectHelp does not exist yet
5.9.3.3. erase - erase FLASH memory 51