device
command quick
guidenRF Util’s device
command is a CLI tool for performing a
series of device operations, such as listing or programming. The tool is
meant for use with Nordic Semiconductor devices.
See the Device command section on the TechDocs platform for complete documentation.
Note: If you are working on Linux, you need nrf-udev
installed to use the device
command.
To see the list of subcommands and available device operations, run
nrfutil device --help
.
A device trait is a general property or capability a device has. All devices are annotated with traits, which are used to determine whether a device supports a given device operation or programming method.
Examples:
mcuboot
trait: The device has support for programming
over MCUboot.jlink
trait: The device has a J-Link probe and supports
operations like erase
, recover
, …serialPorts
trait: The device has serial ports.See the help for --traits
(for example in
nrfutil device list --help
) for the full list of available
traits and their descriptions.
Here are some basic usage examples of the device
command:
Check the version information for your installed device command. This also shows your installed J-Link version:
nrfutil device --version
List all devices with a SEGGER J-Link on-board debugger:
nrfutil device list --traits seggerUsb
Program a specific device with serial number
000683298616
:
nrfutil device program --serial-number 000683298616 --firmware path_to_some_firmware.hex
Program all devices with a Nordic DFU trigger interface:
nrfutil device program --traits nordicDfu --firmware path_to_some_dfu_package.zip