program - Program DUT

Erase and Program DUT MCU on-board flash.

Usage:

- command: program <target> [UART0|UART1] [offset:]<img>[,[offset:]<img>[,...]] [noerase]
  [retry: <retryCount>]
- command: program CMSIS [offset:]<img>
  pack: <cmsis_pack>
  target: <cmsis_target>
  [retry: <retryCount>]

Argument

Description

target

Target to program

UART0, UART1

Port for UART targets

offset

Optional: Image Address Offset

img

Firmware File

Optional: Additional offsets, images

noerase

Optional: If set, DUT will not be erased prior to programming

cmsis_pack

For cmsis target: CMSIS Pack file

cmsis_target

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

retryCount

Optional: Number of times to retry the test step

Firmware images can be provided as Intel HEX (.hex), ELF (.elf / .axf) or binary files (requiring an offset).

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)

EFM32

Silicon Labs EFM32 MCU (SWD)

EFR32

Silicon Labs EFR32 RFSoC (SWD)

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)

PN7360

NXP PN7360 (SWD)

PN7362

NXP PN7362 (SWD)

PN7460

NXP PN7460 (SWD)

PN7462

NXP PN7462 (SWD)

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