FLASH "ERASE FLASH"

Erase flash memory.

Syntax

FLASH "ERASE FLASH burn_alg [exec_init] blocks"

Parameters

burn_alg

One of the following values:

TRUE

Transfers the burn algorithm the target.

FALSE

Uses the existing burn algorithm on the target.

exec_init

One of the following values:

TRUE

Executes the initialization script specified in the configuration window before erasing the flash.

FALSE

Erases flash without reinitializing the target before. This is the default value.

blocks

One of the following values:

ALL

Erases all blocks.

BOOT

Erases all boot blocks.

DATA

Erases all data blocks.

INDIVIDUAL 'block_list'

Erases individual blocks.

The mandatory parameter block_list specifies the block numbers of the blocks to be erased.

Description

The command FLASH "ERASE FLASH" erases the flash memory.

Note

  • Separate single blocks and block ranges by “,”.

  • Specify block ranges by using “-” between the first and the last block of the range.

  • Specify the blocks in ascending order.

  • Select only blocks from the range of available blocks.

  • Follow the correct syntax for specifying blocks, otherwise the blocks are not erased and the debugger displays an error message.

Example

FLASH "ERASE FLASH TRUE INDIVIDUAL '16,32,44-48'"

This erases the blocks number 16, number 32, and number 44-48 in the flash memory.

See Also

For more complete information about compiler optimizations, see our Optimization Notice.