fl::erase

Erases the flash device.

Syntax
erase all | list | image
Parameters
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.

Examples

The following table lists and defines examples of the fl::erase command.

Table 1. fl::erase Command-line debugger command - Examples
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.