Is there a sample application that shows how to get a hello world application going with the mcuboot able to do updates from extermal flash?
I am looking at the app with mcu boot sample, building for the nrf52840dk board, but don't understand what needs to be done to configure the mcuboot to work.
I can't find the docuemntation that shows how to actually set up a concrete example,
I have updated prj.conf with
'``
```
In file included from E:/ncs/v2.5.1/bootloader/mcuboot/boot/zephyr/include/sysflash/sysflash.h:10,
from E:/ncs/v2.5.1/bootloader/mcuboot/boot/bootutil/src/bootutil_priv.h:33,
from E:/ncs/v2.5.1/bootloader/mcuboot/boot/bootutil/src/swap_scratch.c:25:
E:/ncs/v2.5.1/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h: In function '__flash_area_ids_for_slot':
E:/ncs/v2.5.1/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:47:60: error: 'PM_MCUBOOT_SECONDARY_ID' undeclared (first use in this function); did you mean 'PM_MCUBOOT_PRIMARY_ID'?
47 | #define FLASH_AREA_IMAGE_0_SLOTS PM_MCUBOOT_PRIMARY_ID, PM_MCUBOOT_SECONDARY_ID
| ^~~~~~~~~~~~~~~~~~~~~~~
E:/ncs/v2.5.1/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:52:29: note: in expansion of macro 'FLASH_AREA_IMAGE_0_SLOTS'
52 | #define ALL_AVAILABLE_SLOTS FLASH_AREA_IMAGE_0_SLOTS
| ^~~~~~~~~~~~~~~~~~~~~~~~
E:/ncs/v2.5.1/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro 'ALL_AVAILABLE_SLOTS'
67 | ALL_AVAILABLE_SLOTS
| ^~~~~~~~~~~~~~~~~~~
E:/ncs/v2.5.1/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:47:60: note: each undeclared identifier is reported only once for each function it appears in
47 | #define FLASH_AREA_IMAGE_0_SLOTS PM_MCUBOOT_PRIMARY_ID, PM_MCUBOOT_SECONDARY_ID
| ^~~~~~~~~~~~~~~~~~~~~~~
E:/ncs/v2.5.1/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:52:29: note: in expansion of macro 'FLASH_AREA_IMAGE_0_SLOTS'
52 | #define ALL_AVAILABLE_SLOTS FLASH_AREA_IMAGE_0_SLOTS
| ^~~~~~~~~~~~~~~~~~~~~~~~
E:/ncs/v2.5.1/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro 'ALL_AVAILABLE_SLOTS'
67 | ALL_AVAILABLE_SLOTS
| ^~~~~~~~~~~~~~~~~~~
```