Use the ble image-upload subcommand to upload an image onto the target device.
Complete the following steps to upload a new firmware image to a device that advertises with the Nordic_LBS name:
- Connect the HCI UART device and the target device to your computer.
- Start your Bluetooth scanner mobile application and identify the device name.
If you programmed the LBS sample, the name should beNordic_LBS. -
Identify the serial port of the HCI UART controller.
For example, run the following command:nrfutil device list -
Run the
image-uploadcommand with options that specify the BIN firmware file to upload, the device to which it should be uploaded, and the serial port of the Bluetooth Controller device:nrfutil mcu-manager ble --hci-serial-port COM35 image-upload --firmware mcuboot_secondary_app_update.bin --device-name Nordic_LBSThe command scans for Bluetooth LE devices whose name contains "Nordic_LBS". It then connects to the first matching device, discovers the SMP service and characteristic, and uploads the firmware file. The output will look similar to the following one:
v Device found: F9:9F:F3:7E:B3:D6, Nordic_LBS v Connected to device: F9:9F:F3:7E:B3:D6 [00:00:44] ###### 100% [Nordic_LBS] Uploaded mcuboot_secondary_app_update.bin -
Run the
ble image-listsubcommand with correct option values to confirm the upload:nrfutil mcu-manager ble --hci-serial-port COM35 image-list --device-name Nordic_LBSNote
See also Image and slot numbering if you are uploading to a device with more than one image and your firmware uses the optional image number field.
The output will look similar to the following one and will contain the new application image in slot 1, in addition to the application image in slot 0 that is currently active (
active: true):v Device found: F9:9F:F3:7E:B3:D6, Nordic_LBS v Connected to device: F9:9F:F3:7E:B3:D6 Image slot: 0 version: 1.0.0 hash: a111cd40c001b75439dfd0d4ecaa1c9b2de71b80fd49a8f0f6a3c151055e45b5 bootable: true pending: false confirmed: true active: true permanent: false Image slot: 1 version: 2.0.0 hash: 74e62f0ce9c2045f8f56f650e2667c531be55b1289dc8109ba6445409a8a072f bootable: true pending: false confirmed: false active: false permanent: false