File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,21 @@ In order to use MCUboot with Zephyr you need to take the following into account:
3636
37371. 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
You can’t perform that action at this time.
0 commit comments