|
| 1 | +.. _single_slot_sample: |
| 2 | + |
| 3 | +Single-slot DFU with MCUboot |
| 4 | +############################ |
| 5 | + |
| 6 | +.. contents:: |
| 7 | + :local: |
| 8 | + :depth: 2 |
| 9 | + |
| 10 | +The Single-slot DFU with MCUboot sample demonstrates how to maximize the available space for the application using MCUboot. |
| 11 | +You can do this by using the firmware loader mode (single-slot layout) in MCUboot. |
| 12 | +Both MCUboot and the firmware loader images are configured to achieve minimal size, leaving more space available for the application. |
| 13 | + |
| 14 | +Requirements |
| 15 | +************ |
| 16 | + |
| 17 | +The sample supports the following development kit: |
| 18 | + |
| 19 | +.. table-from-sample-yaml:: |
| 20 | + |
| 21 | +Overview |
| 22 | +******** |
| 23 | + |
| 24 | +This sample contains a simple main application with no firmware update capabilities. |
| 25 | +The firmware loader image is used to perform the DFU over Bluetooth® Low Energy. |
| 26 | +See :ref:`ug_bootloader_using_firmware_loader_mode` for more details. |
| 27 | + |
| 28 | +This sample employs the :ref:`fw_loader_ble_mcumgr` firmware loader image, which uses the Simple Management Protocol (SMP) over Bluetooth LE. |
| 29 | + |
| 30 | +Building and running |
| 31 | +******************** |
| 32 | + |
| 33 | +.. |sample path| replace:: :file:`samples/dfu/single_slot` |
| 34 | + |
| 35 | +.. include:: /includes/build_and_run.txt |
| 36 | + |
| 37 | +Testing |
| 38 | +======= |
| 39 | + |
| 40 | +After programming the sample to your development kit, perform the following steps: |
| 41 | + |
| 42 | +1. |connect_terminal_specific| |
| 43 | +#. Reset the development kit and observe the output on the terminal:: |
| 44 | + |
| 45 | + Starting single_slot sample |
| 46 | + build time: <BUILD TIME> |
| 47 | + |
| 48 | +#. Build a second version of the sample. |
| 49 | +#. Enter the firmware loader mode by holding the **Button 0** on your development kit while you reset the device. |
| 50 | +#. Open the `nRF Connect Device Manager`_ mobile app to perform DFU over Bluetooth LE. |
| 51 | + The firmware loader advertises itself as **FW loader** and accepts MCUmgr image upload. |
| 52 | +#. Send the generated update package for the second version of the sample. |
| 53 | + See :ref:`ug_nrf54l_developing_ble_fota_steps_testing` for details on how to use the mobile app to perform the DFU. |
| 54 | +#. Verify that the printed build time corresponds to the new version once the update is complete and the device reboots into the main application. |
| 55 | + |
| 56 | +Dependencies |
| 57 | +************ |
| 58 | + |
| 59 | +This sample uses the following |NCS| components: |
| 60 | + |
| 61 | +* :ref:`MCUboot <mcuboot_index_ncs>` |
| 62 | +* :ref:`fw_loader_ble_mcumgr` (as the firmware loader image built by sysbuild) |
0 commit comments