FLASH "CHECK FLASH"

Verify successful block erasion.

Syntax

FLASH "CHECK 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 checking the flash.

FALSE

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

blocks

One of the following values:

ALL

Checks all blocks.

BOOT

Checks all boot blocks.

DATA

Checks all data blocks.

INDIVIDUAL 'block_list'

Checks individual blocks.

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

Description

The command FLASH "CHECK FLASH" checks whether the specified blocks were actually erased. If this check fails, an error message appears, specifying the address of the first block that was not successfully erased.

The initialization script and the download of the burn algorithm to the target need to be executed only once per session. Changes to the target RAM memory or registers may require an additional execution. The burn_alg parameter has no effect on the RAM-free burning method.

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 checked and the debugger displays an error message.

Example

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

This checks the blocks number 16, number 32, and number 44-48 in the flash memory whether these blocks were actually erased.

See Also

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