erase - Erase DUT FlashΒΆ

Erase DUT MCU on-board flash.

Usage:

- command: erase <target> [UART0|UART1]
  [retry: <retryCount>]
- command: erase CMSIS
  pack: <cmsis_pack>
  target: <cmsis_target>
  [retry: <retryCount>]

Argument

Description

target

Target to erase

UART0, UART1

Port for UART targets

cmsis_pack

For cmsis target: CMSIS Pack file

cmsis_target

For cmsis target: Target name, as defined in CMSIS Pack file

retryCount

Number of times to retry the test step (optional)

Supported target values:

target

Description

ATSAME5

Atmel SAM D5x/E5x (SWD)

ATSAME5_DAP

Atmel SAM D5x/E5x (USB, DAPlink)

AVRATmega168P_ISP

Atmel AVR ATmega168P(A) (JTAG:ISP)

AVRATmega168P_XPm

Atmel AVR ATmega168P(A) (USB, XPmini)

AVRATmega168PB_ISP

Atmel AVR ATmega168PB (JTAG:ISP)

AVRATmega168PB_XPm

Atmel AVR ATmega168PB (USB, XPmini)

CC1352

TI CC1352 RFSoC

CMSIS

CMSIS-DAP programmer, requires pack: and target: fields (USB)

ESP32

Espressif ESP32 RFSoC (JTAG)

ESP32_JTAG

Espressif ESP32 RFSoC (JTAG)

ESP32_UART

Espressif ESP32 RFSoC (UART)

LPC11xx

NXP LPC11xx MCU (SWD)

nRF52

Nordic nRF52 RFSoC (SWD)

nRF52_JLink

Nordic nRF52 RFSoC (USB, JLink)

nRF91

Nordic nRF9160 RFSoC:Cortex-M33 (SWD)

nRF91_JLink

Nordic nRF9160 RFSoC:Cortex-M33 (USB, JLink)

PIC18F25K20

Microchip PIC18F25K20 (JTAG:ICSP)

PIC18F25K20_PK2

Microchip PIC18F25K20 (USB, PICkit2)

PSoC4

Cypress PSoC4 (SWD)

PSoC6

Cypress PSoC6 (SWD)

PSoC6_KP3

Cypress PSoC6 (USB, KitProg3)

STM32F2

ST STM32F2xx MCU (SWD)

STM32F2_STLink

ST STM32F2xx MCU (USB, ST-Link)

STM32F4

ST STM32F4xx MCU (SWD)

STM32F4_STLink

ST STM32F4xx MCU (USB, ST-Link)

STM32L4

ST STM32L4xx MCU (SWD)

STM32L4_STLink

ST STM32L4xx MCU (USB, ST-Link)

Examples