Ferase - Motorola PPC/CPCI-690 Reference Manual

Table of Contents

Advertisement

Command Set

ferase

Caution
D
ESCRIPTION
S
YNTAX
P
ARAMETERS
flashDevice
flashOffset
length
E
1
XAMPLE
4 - 52
Data loss
Using this command without specifying an area will erase the whole
flash memory.
If you do not want to erase the whole flash memory, specify an area by
adding the destination offset and the number of bytes to be erased.
This command erases a whole flash memory device or a specified area of
the flash memory device. The specified area must exactly match the page
boundaries of the flash memory device. If a user flash consists, for example,
of a 28F008 device (1 Mbit * 8 bit), the minimum size of the erasable area is
64 KByte, i.e. the size of one sector.
There are two tasks which can be done by means of FERASE:
• Erasing a whole flash memory device
• Erasing a specified area of a flash memory device
ferase <flashDevice> [<flashOffset> [<length>]]
Specifies the name of the flash memory device to be erased. If only flashDe-
vice is defined, the whole flash memory device will be erased.
Specifies the destination offset within the flash memory device area to be
erased.
Specifies the number of bytes within the flash memory device area to be
erased.
Suppose you want to erase boot flash 1 which is write-protected via switch
setting. Since FERASE checks whether the flash is write-protected, the fol-
lowing message appears:
PowerBoot> ferase BOOT_FLASH1
Do not reprogram BOOT_FLASH1, this would destroy the booter
Device is write protected
PowerBoot
PPC/CPCI-690

Advertisement

Table of Contents
loading

Table of Contents