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

EraseOption.External cannot be specified because CS+ does not support erasing flash memory data in the external space.

[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.

-

Erasing code-flash and data-flash data will be as shown in the table below.
The simulator, on the other hand, always pads both code-flash and data-flash memory with 0xff.

Series

Emulator

Description

RL78

E1/E20

The operation leaves both code-flash and data-flash memory blank.

RL78

IECUBE

Code-flash memory is padded with 0xff and data-flash memory is left blank.

RX

E1/E20

Both code-flash and data-flash memory are padded with 0xff.

RH850

E1/E20/Full-spec emulator

The operation leaves both code-flash and data-flash memory blank.

[Example of use]

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