Erases the flash device.
erase all | list | image
all
Erases all sectors using an all-chip erase function.
list
Erases specific sectors as set with the "device" command.
image
Erases all sectors occupied by the file specified with fl::image.
The following table lists and defines examples of the fl::erase command.
| Command | Description |
|---|---|
| erase all | Erases the device using the all-chip erase operation. This is not supported by all flash devices. All sectors will be erased regardless of the enabled list maintained by the "device" command. Erase the device one sector at a time. All sectors will be erased regardless of the enabled list maintained by the "device" command. |
| erase list | Erases the sectors in enabled list. |
| erase image | Erases the sectors occupied by the file defined with fl::image. |