debugger.Erase


This function erases the flash memory.

[Specification format]

debugger.Erase(eraseOption = EraseOption.Code)

[Argument(s)]

Argument

Description

eraseOption

Specify an option.

The options that can be specified are shown below.

Type

Description

EraseOption.Code

Erase the code flash memory (default).

EraseOption.Data

Erase the data flash memory.

EraseOption.External

Erase the flash memory in external space.

Caution

IECUBE, IECUBE2, and the simulator do not have functionality to delete code flash memory. For this reason, if you are using IECUBE, IECUBE2, or the simulator, you cannot omit eraseOption, or specify "EraseOption.Code".

[Return value]

If the flash memory was erased successfully: True

If there was an error when erasing the flash memory: False

[Detailed description]

-

This function erases the flash memory, specified by eraseOption.

[Example of use]

>>>debugger.Erase()
True
>>>debugger.Erase(EraseOption.External)
False
>>>