program - Program DUT
Erase and Program DUT MCU on-board flash.
General usage:
- command: program <target> [<uartPort>] [offset:]<img>[,[offset:]<img>[,...]] [noerase]
[id: <usbDeviceID>]
[path: <usbDevicePath>]
[interface: <usbDeviceInterface>]
[retry: <retryCount>]
Argument |
Description |
---|---|
target |
Target to program. |
uartPort |
UART port name. Only required for UART programming 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. |
usbDeviceID |
Optional: Programming adapter USB device identifiers: |
usbDevicePath |
Optional: Programming adapter USB device path: |
usbDeviceInterface |
Optional: Programming adapter USB device interface: |
retryCount |
Optional: Number of times to retry the test step. |
On the PLT-300A, the programming adapter can be specified using usbDeviceID
, usbDevicePath
, and
usbDeviceInterface
. Specifying the programming adapter location allows multiple adapters of the
same type to be used in a single test plan, or for an external adapter to be used in place of the built-in
programming adapter. See USB Interaction for details on specifying USB devices.
Firmware images can be provided as Intel HEX (.hex
),
ELF (.elf
/ .axf
) or binary files (requiring an offset).
Usage with CMSIS programming packs:
- command: program CMSIS [offset:]<img>
pack: <cmsisPack>
target: <cmsisTarget>
[id: <usbDeviceID>]
[path: <usbDevicePath>]
[retry: <retryCount>]
Argument |
Description |
---|---|
offset |
Optional: Image Address Offset. |
img |
Firmware File. |
cmsisPack |
CMSIS Pack file. |
cmsisTarget |
Target name, as defined in CMSIS Pack file. |
usbDeviceID |
Optional: USB device identifiers: |
usbDevicePath |
Optional: USB device path: |
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).
Usage with USB-DFU targets:
- command: program USB-DFU [offset:]<img>
target: <target>
[id: <usbDeviceID>]
[path: <usbDevicePath>]
[retry: <retryCount>]
Argument |
Description |
---|---|
offset |
Optional: Image Address Offset. |
img |
Firmware File. |
target |
Target MCU to program. |
usbDeviceID |
Optional: USB device identifiers: |
usbDevicePath |
Optional: USB device path: |
retryCount |
Optional: Number of times to retry the test step. |
If neither usbDeviceID
or usbDevicePath
is set, the device connected to DUT USB-C Port (Port 1) is assumed.
For USB-DFU
, firmware images must be in .dfu format. The dfuse-pack.py
script from the dfu-util project <https://sourceforge.net/p/dfu-util/> can be
used to generate .dfu files from hex or binary.
Supported target values:
target |
Description |
---|---|
|
Microchip (Atmel) SAM D1x/D2x, C2x, L2x, R2x or R3x (SWD) |
|
Microchip (Atmel) SAM D1x/D2x, C2x, L2x, R2x or R3x (USB, CMSIS-DAP) |
|
Microchip (Atmel) SAM D5x/E5x (SWD) |
|
Microchip (Atmel) SAM D5x/E5x (USB, CMSIS-DAP) |
|
Microchip (Atmel) AVR ATmega168P(A) (JTAG:ISP) |
|
Microchip (Atmel) AVR ATmega168P(A) (USB, XPmini) |
|
Microchip (Atmel) AVR ATmega168PB (JTAG:ISP) |
|
Microchip (Atmel) AVR ATmega168PB (USB, XPmini) |
|
TI CC1352P1, CC1352R1 RFSoC (USB, CMSIS-DAP) |
|
TI CC1352P7 RFSoC (USB, CMSIS-DAP) |
|
CMSIS-DAP programmer, requires |
|
Silicon Labs EFM32 MCU (SWD) |
|
Silicon Labs EFR32 RFSoC (SWD) |
|
Espressif ESP32 RFSoC (UART) |
|
NXP LPC11xx MCU (SWD) |
|
Nordic nRF52 RFSoC (SWD) |
|
Nordic nRF52 RFSoC (USB, CMSIS-DAP) |
|
Nordic nRF52 RFSoC (USB, JLink) |
|
Nordic nRF9160 RFSoC:Cortex-M33 (SWD) |
|
Nordic nRF9160 RFSoC:Cortex-M33 (USB, JLink) |
|
Microchip PIC18F25K20 (JTAG:ICSP) |
|
Microchip PIC18F25K20 (USB, PICkit2) |
|
NXP PN7360 (SWD) |
|
NXP PN7362 (SWD) |
|
NXP PN7460 (SWD) |
|
NXP PN7462 (SWD) |
|
Infineon (Cypress) PSoC4 (SWD) |
|
Infineon (Cypress) PSoC6 (SWD) |
|
Infineon (Cypress) PSoC6 (USB, KitProg3) |
|
ST STM32F1xx MCU (SWD) |
|
ST STM32F1xx MCU (USB, ST-Link) |
|
ST STM32F2xx MCU (SWD) |
|
ST STM32F2xx MCU (USB, ST-Link) |
|
ST STM32F4xx MCU (SWD) |
|
ST STM32F4xx MCU (USB, ST-Link) |
|
ST STM32G4xx MCU (SWD) |
|
ST STM32G4xx MCU (USB, ST-Link) |
|
ST STM32L4xx MCU (SWD) |
|
ST STM32L4xx MCU (USB, ST-Link) |
|
ST STM32L5xx MCU (SWD) |
|
ST STM32L5xx MCU (USB, ST-Link) |
|
ST STM32H7xx MCU (SWD) |
|
ST STM32H7xx MCU (USB, ST-Link) |
|
USB Device Firmware Upgrade (DFU 1.0, 1.1) (USB) |
Examples