Skip to content

Commit 6e7f93a

Browse files
benediktibknashif
authored andcommitted
docs: Improve documentation of bootloader usage
Describes the necessity to specify the code partition as the chosen one. Signed-off-by: Benedikt Schmidt <[email protected]>
1 parent e709c49 commit 6e7f93a

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

doc/guides/device_mgmt/dfu.rst

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,21 @@ In order to use MCUboot with Zephyr you need to take the following into account:
3636

3737
1. You will need to define the flash partitions required by MCUboot; see
3838
:ref:`flash_map_api` for details.
39-
2. Your application's :file:`.conf` file needs to enable the
39+
2. You will have to specify your flash parition as the chosen code partition
40+
41+
.. code-block:: devicetree
42+
43+
/ {
44+
chosen {
45+
zephyr,code-partition = &slot0_partition;
46+
};
47+
};
48+
49+
3. Your application's :file:`.conf` file needs to enable the
4050
:kconfig:`CONFIG_BOOTLOADER_MCUBOOT` Kconfig option in order for Zephyr to
4151
be built in an MCUboot-compatible manner
42-
3. You need to build and flash MCUboot itself on your device
43-
4. You might need to take precautions to avoid mass erasing the flash and also
52+
4. You need to build and flash MCUboot itself on your device
53+
5. You might need to take precautions to avoid mass erasing the flash and also
4454
to flash the Zephyr application image at the correct offset (right after the
4555
bootloader)
4656

0 commit comments

Comments
 (0)