newtmgr image¶
Manage images on a device.
Usage:¶
newtmgr image [command] -c <connection_profile> [flags]
Flags:¶
The coredownload subcommand uses the following local flags:
-n, --bytes uint32 Number of bytes of the core to download
-e, --elfify Create an ELF file
--offset unint32 Offset of the core file to start the download
Global Flags:¶
-c, --conn string connection profile to use
-h, --help help for newtmgr
-l, --loglevel string log level to use (default "info")
--name string name of target BLE device; overrides profile setting
-t, --timeout float timeout in seconds (partial seconds allowed) (default 10)
-r, --tries int total number of tries in case of timeout (default 1)
Description¶
The image command provides subcommands to manage core and image files on a device. Newtmgr uses the conn_profile
connection profile to connect to the device.
Sub-command |
Explanation |
---|---|
confirm |
The |
coreconvert |
The |
coredownload |
The |
coreerase |
The |
corelist |
The |
erase |
The |
list |
The |
test |
The |
upload |
The |
Examples¶
Sub-command |
Usage |
Explanation |
---|---|---|
confirm |
|
Makes the current image setup on a device permanent. Newtmgr connects to the device over a connection specified in the |
confirm |
|
Makes the image, identified by the |
coreconvert |
|
Converts the |
coredownload |
|
Downloads the core from a device and saves it in the |
coredownload |
|
Downloads the core from a device, converts the core file into the ELF format, and saves it in the |
coredownload |
|
Downloads 30 bytes, starting at offset 10, of the core from a device and saves it in the |
coreerase |
|
Erases the core file on a device. Newtmgr connects to the device over a connection specified in the |
corelist |
|
Lists the core files on a device. Newtmgr connects to the device over a connection specified in the |
erase |
|
Erases the image, if unused, from the secondary image slot on a device. Newtmgr connects to the device over a connection specified in the |
list |
|
Lists the images on a device. Newtmgr connects to the device over a connection specified in the |
test |
|
Tests the image, identified by the |
upload |
|
Uploads the |