Device Erase Commands#

Erase Chip#

Executes a mass erase for devices where it is supported. On EFM32G and EFM32TG, all pages are erased instead, which is significantly slower.

Command Line Syntax

$ commander device masserase

Command Line Usage Output

Erasing chip...
DONE

Erase Region#

Erases a named region. For more information on the --region option, see Flash Verification Command.

Command Line Syntax

$ commander device pageerase --region <@region>

Command Line Input Example

$ commander device pageerase --region @userdata

Command Line Output Example

Erasing range 0x0fe00000 - 0x0fe00800
DONE

Erase Pages in Address Range#

Erases all flash pages affected by the given memory range. If the given range doesn't match page boundaries, it will be extended to always erase entire pages.

Command Line Syntax

$ commander device pageerase --range <startaddress>:<endaddress>

Command Line Input Example

$ commander device pageerase --range 0x200:0x6000

Erases all flash pages 0 to 11 or 0x0000 to 0x5FFF (assuming a page size of 2 kB).

Command Line Output Example

Erasing range 0x00000000 - 0x00006000
DONE