<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109540/ota-dfu-on-nora-b1</link><description>Hello, 
 
 I have a project working on Nora B1, which I am testing on nrf5340DK. It is based on the Peripheral UART Sample, programmed with nfr Connect SDK v1.9.1. Now I need to add the OTA DFU to update the program from the nrf Connect mobile app. I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Jun 2024 09:25:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109540/ota-dfu-on-nora-b1" /><item><title>RE: OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/thread/489237?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2024 09:25:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4156dc95-5cb2-4f27-816d-acd7b4a1da31</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure what could be causing this issue. I recommend checking with U-blox technical support to see if there are any compatibility issues. I reviewed their references, but I only found guides based on our old SDK (perhaps I missed some).&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/thread/488945?ContentTypeID=1</link><pubDate>Sat, 15 Jun 2024 10:13:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83d51d6e-e621-46c9-a49e-b31013744309</guid><dc:creator>Jirik</dc:creator><description>&lt;p&gt;Thank you a lot for the support and your new ideas! I tried to implement this device tree overlay to the Hello World app, but the problem is unfortunately still the same.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Jiri&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/thread/488097?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2024 11:06:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b688c4c8-17ab-46cd-ba03-1c6d6a9a4852</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="Jirik"]I guess I just need to find another hardware.[/quote]
&lt;p&gt;I don&amp;#39;t think that&amp;#39;s a good idea to resolve the issue.&lt;/p&gt;
&lt;p&gt;I am attaching a sample where I included a device tree overlay for the NORA B1 module. Build this sample by including the nora_b1.overlay, and see if this helps. Since the application without MCUboot is working fine, the issue likely lies in the bootloader configuration or the interaction between MCUboot and your application. Please update me with the result. Sorry, I could not provide a clear solution to this issue.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/lbs_5F00_ota_5F00_dfu_5F00_withNORA_5F00_DT.zip"&gt;devzone.nordicsemi.com/.../lbs_5F00_ota_5F00_dfu_5F00_withNORA_5F00_DT.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/thread/487979?ContentTypeID=1</link><pubDate>Sat, 08 Jun 2024 14:17:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2d788da-6ba3-433e-95a5-ec7c5dfb9877</guid><dc:creator>Jirik</dc:creator><description>&lt;p&gt;Thank you for the clue, but it also does not work. I guess I just need to find another hardware.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/thread/486156?ContentTypeID=1</link><pubDate>Tue, 28 May 2024 11:22:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85ee3de1-b614-41e3-833e-9f82629a0679</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the late response; I was on vacation for some days.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know why it&amp;#39;s behaving like this, and it&amp;#39;s hard for me to reproduce this as I don&amp;#39;t have the module you are working with. I am not sure on this, but is this a problem regarding the DC_DC being enabled for the module you are working on? Try disabling the DC_DC inside the prj.config and MCUboot.config.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BOARD_ENABLE_DCDC=n
CONFIG_BOARD_ENABLE_DCDC_APP=n
CONFIG_BOARD_ENABLE_DCDC_NET=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/thread/484868?ContentTypeID=1</link><pubDate>Sat, 18 May 2024 13:51:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0b4a5e1-7bc6-419d-9b8c-657811eefd63</guid><dc:creator>Jirik</dc:creator><description>&lt;p&gt;Hello Abhijith,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;sorry for the late answer, I was out for a few days. I tested it as you suggested and the issue is really the MCUBOOT. Is there actualy any reason, why the NORA B1 can&amp;#39;t do this? (Hardware)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Jiri&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/thread/483022?ContentTypeID=1</link><pubDate>Mon, 13 May 2024 11:57:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81582802-8b92-4d24-805a-42341c3b9341</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;To narrow down this issue, try adding each configuration and seeing when and which configuration is triggering the issue. For doing this, take a simple sample (may be Hello World), include each configuration one by one, and see the result for each. See if it&amp;#39;s the bootloader (MCUBOOT) triggering the issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/thread/482891?ContentTypeID=1</link><pubDate>Sat, 11 May 2024 11:27:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb98eab7-1609-4563-8150-d6ab909ff4af</guid><dc:creator>Jirik</dc:creator><description>&lt;p&gt;Hello Abhijith&lt;/p&gt;
&lt;p&gt;Thank you a lot for the answer,&lt;/p&gt;
&lt;p&gt;as the aplication is working on the Development Kit, I do not have&amp;nbsp;many options to Debug it on the Module. What I checked: The BLE does not advertise, the defined GPIO does not work. When I do not configure CONFIG_BOOTLOADER_MCUBOOT, all this works.&lt;/p&gt;
&lt;p&gt;I suppose that the module does not boot at all, because there is no output (GPIO) at all. Maybe you can give me some advice, how could I find out more information about where exactly the application crashes.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Jiri&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/thread/482296?ContentTypeID=1</link><pubDate>Tue, 07 May 2024 13:28:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24d84d56-ffaa-4ae2-8e38-098fe1ddcb9c</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I went through the project you shared, and I couldn&amp;#39;t find any issues there. Is there any error message or log to share? It would be nice if I got any clue as to where the application was crashing. How can you confirm that this application is not working for your module?&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/thread/480398?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 09:44:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a2769bd-b176-424d-ad35-e838cdf92b74</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the delay. I was quite caught up with some other work. I will go through your project and get back to you soon.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/thread/479215?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2024 12:28:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffdbcf79-84ed-484e-8e49-e1b31ae7e6c2</guid><dc:creator>Jirik</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/lbs_5F00_ota_5F00_dfu_5F00_withoutextflash_5F00_my.zip"&gt;devzone.nordicsemi.com/.../lbs_5F00_ota_5F00_dfu_5F00_withoutextflash_5F00_my.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hello Abhijith,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for the hint with the path, I already implemented it in my previous applications, so it was not the problem.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am sending you the whole project, it is the the lbs_ota_dfu_withoutextflash you sent me, with my changes to make it uploadable on the NORA B1 (which unfortunately does not work) to avoid the problem with the external flash. Please take a look at it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you a lot for the support.&lt;/p&gt;
&lt;p&gt;Jiri&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/thread/478974?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2024 12:15:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca749892-e2c4-47a8-a4a7-e12c4a8265ad</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Could you share your whole configuration and overlay files here? I will take a look. If you have a pm_static file, then please share that too.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1713269376673v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The path or file name I mentioned in the above response is wrong. You can change the mcuboot configuration either by &lt;span dir="ltr"&gt;&lt;em&gt;child_image/mcuboot.conf&lt;/em&gt;&amp;nbsp;or&lt;em&gt; child_image/mcuboot/prj.conf.&lt;/em&gt; See the page &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/multi_image.html#permanent-configuration-changes-to-child-images"&gt;Multi-image build&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/thread/478369?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 14:43:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f05812a-2c2f-4b29-8daf-579003b06638</guid><dc:creator>Jirik</dc:creator><description>&lt;p&gt;Hi Abhijith,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks a lot for the sample and for the hint, it works fine on the nRF5340 DK, but unfortunately I still can&amp;#39;t run it on the NORA B1 SoC. (even after defining&lt;/p&gt;
&lt;p&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y and&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL&lt;/span&gt;&lt;span&gt;=n in prj.conf and child_image\hci_rpmsg.conf)&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;It looks like there are some more problems than the external flash. But still thanks a lot for helping me eliminate the external flash.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Are there maybe some more hardware caused dependencies?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Jiri&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/thread/478199?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 07:35:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3410660f-42e6-40e8-8e42-9718046d9354</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Take a look at&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/102337/how-to-implement-simultaneous-dfu-on-5340-ncs2-4-without-external-flash"&gt;&amp;nbsp;this case&lt;/a&gt; where my colleague is discussing the same thing. I am also attaching a simple sample that I tested inside NCSv2.5.0 for your reference.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/lbs_5F00_ota_5F00_dfu_5F00_withoutextflash.zip"&gt;devzone.nordicsemi.com/.../lbs_5F00_ota_5F00_dfu_5F00_withoutextflash.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/thread/478075?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 13:09:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0041061-c07d-451d-a8b0-ef9849de88c8</guid><dc:creator>Jirik</dc:creator><description>&lt;p&gt;Hi Abhijith,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After a lot of trying and searching (thanks a lot to Torsten Robitzki for the hint), is my question:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is it possible to use FOTA on nRF5340 devices without external flash? And if yes, how should I change the sample from the DevAcademy to do so?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks a lot in advance&lt;/p&gt;
&lt;p&gt;Kind Regards&lt;/p&gt;
&lt;p&gt;Jiri&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/thread/477986?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 09:16:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ed802db-7c2b-43db-ba92-e9fd0196fa71</guid><dc:creator>Jirik</dc:creator><description>&lt;p&gt;Thank you very much for the advice, I think that should be the problem. Going back to the Sample from the DevAcademy, there is the external flash enabled in app.overlay and in child_image/mcuboot.overlay, I disabled (deleted) the external flash for both of them. Now I can&amp;#39;t build the programm, getting these error messages:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;FAILED: CMakeFiles/app.dir/flash_map_extended.c.obj 
C:\ncs\toolchains\c57af46cb7\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\&amp;quot;mcuboot-mbedtls-cfg.h\&amp;quot; -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DUSE_PARTITION_MANAGER=1 -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/targets -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/include -IC:/ncs/v2.5.0/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.5.0/nrf/include -IC:/ncs/v2.5.0/nrf/tests/include -IC:/ncs/v2.5.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.5.0/zephyr/modules/cmsis/. -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.5.0/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.5.0/modules/crypto/mbedtls/include -IC:/ncs/v2.5.0/zephyr/modules/mbedtls/configs -IC:/ncs/v2.5.0/zephyr/modules/mbedtls/include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/.. -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/../include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/../../zephyr/include -isystem C:/ncs/v2.5.0/zephyr/lib/libc/minimal/include -isystem c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include -isystem c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include-fixed -isystem C:/ncs/v2.5.0/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros C:/ncs/2.5SDK/less8/build/mcuboot/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.5.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.5.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.5.0=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/flash_map_extended.c.obj -MF CMakeFiles\app.dir\flash_map_extended.c.obj.d -o CMakeFiles/app.dir/flash_map_extended.c.obj -c C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/flash_map_extended.c
In file included from C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/sysflash.h:10,
                 from C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/flash_map_extended.c:15:
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h: In function &amp;#39;__flash_area_ids_for_slot&amp;#39;:
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:37: error: &amp;#39;PM_MCUBOOT_PRIMARY_1_ID&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_MCUBOOT_PRIMARY_ID&amp;#39;?
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:37: note: each undeclared identifier is reported only once for each function it appears in
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:62: error: &amp;#39;PM_MCUBOOT_SECONDARY_1_ID&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_MCUBOOT_SECONDARY_ID&amp;#39;?
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~
[85/279] Building C object CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/tlv.c.obj
FAILED: CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/tlv.c.obj 
C:\ncs\toolchains\c57af46cb7\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\&amp;quot;mcuboot-mbedtls-cfg.h\&amp;quot; -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DUSE_PARTITION_MANAGER=1 -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/targets -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/include -IC:/ncs/v2.5.0/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.5.0/nrf/include -IC:/ncs/v2.5.0/nrf/tests/include -IC:/ncs/v2.5.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.5.0/zephyr/modules/cmsis/. -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.5.0/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.5.0/modules/crypto/mbedtls/include -IC:/ncs/v2.5.0/zephyr/modules/mbedtls/configs -IC:/ncs/v2.5.0/zephyr/modules/mbedtls/include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/.. -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/../include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/../../zephyr/include -isystem C:/ncs/v2.5.0/zephyr/lib/libc/minimal/include -isystem c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include -isystem c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include-fixed -isystem C:/ncs/v2.5.0/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros C:/ncs/2.5SDK/less8/build/mcuboot/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.5.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.5.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.5.0=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/tlv.c.obj -MF CMakeFiles\app.dir\C_\ncs\v2.5.0\bootloader\mcuboot\boot\bootutil\src\tlv.c.obj.d -o CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/tlv.c.obj -c C:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/tlv.c
In file included from C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/sysflash.h:10,
                 from C:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/bootutil_priv.h:33,
                 from C:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/tlv.c:24:
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h: In function &amp;#39;__flash_area_ids_for_slot&amp;#39;:
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:37: error: &amp;#39;PM_MCUBOOT_PRIMARY_1_ID&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_MCUBOOT_PRIMARY_ID&amp;#39;?
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:37: note: each undeclared identifier is reported only once for each function it appears in
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:62: error: &amp;#39;PM_MCUBOOT_SECONDARY_1_ID&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_MCUBOOT_SECONDARY_ID&amp;#39;?
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~
[88/279] Building C object CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/image_rsa.c.obj
FAILED: CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/image_rsa.c.obj 
C:\ncs\toolchains\c57af46cb7\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\&amp;quot;mcuboot-mbedtls-cfg.h\&amp;quot; -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DUSE_PARTITION_MANAGER=1 -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/targets -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/include -IC:/ncs/v2.5.0/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.5.0/nrf/include -IC:/ncs/v2.5.0/nrf/tests/include -IC:/ncs/v2.5.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.5.0/zephyr/modules/cmsis/. -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.5.0/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.5.0/modules/crypto/mbedtls/include -IC:/ncs/v2.5.0/zephyr/modules/mbedtls/configs -IC:/ncs/v2.5.0/zephyr/modules/mbedtls/include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/.. -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/../include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/../../zephyr/include -isystem C:/ncs/v2.5.0/zephyr/lib/libc/minimal/include -isystem c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include -isystem c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include-fixed -isystem C:/ncs/v2.5.0/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros C:/ncs/2.5SDK/less8/build/mcuboot/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.5.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.5.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.5.0=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/image_rsa.c.obj -MF CMakeFiles\app.dir\C_\ncs\v2.5.0\bootloader\mcuboot\boot\bootutil\src\image_rsa.c.obj.d -o CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/image_rsa.c.obj -c C:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/image_rsa.c
In file included from C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/sysflash.h:10,
                 from C:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/bootutil_priv.h:33,
                 from C:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/image_rsa.c:33:
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h: In function &amp;#39;__flash_area_ids_for_slot&amp;#39;:
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:37: error: &amp;#39;PM_MCUBOOT_PRIMARY_1_ID&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_MCUBOOT_PRIMARY_ID&amp;#39;?
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:37: note: each undeclared identifier is reported only once for each function it appears in
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:62: error: &amp;#39;PM_MCUBOOT_SECONDARY_1_ID&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_MCUBOOT_SECONDARY_ID&amp;#39;?
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~
[89/279] Building C object CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/image_validate.c.obj
FAILED: CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/image_validate.c.obj 
C:\ncs\toolchains\c57af46cb7\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\&amp;quot;mcuboot-mbedtls-cfg.h\&amp;quot; -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DUSE_PARTITION_MANAGER=1 -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/targets -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/include -IC:/ncs/v2.5.0/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.5.0/nrf/include -IC:/ncs/v2.5.0/nrf/tests/include -IC:/ncs/v2.5.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.5.0/zephyr/modules/cmsis/. -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.5.0/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.5.0/modules/crypto/mbedtls/include -IC:/ncs/v2.5.0/zephyr/modules/mbedtls/configs -IC:/ncs/v2.5.0/zephyr/modules/mbedtls/include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/.. -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/../include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/../../zephyr/include -isystem C:/ncs/v2.5.0/zephyr/lib/libc/minimal/include -isystem c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include -isystem c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include-fixed -isystem C:/ncs/v2.5.0/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros C:/ncs/2.5SDK/less8/build/mcuboot/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.5.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.5.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.5.0=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/image_validate.c.obj -MF CMakeFiles\app.dir\C_\ncs\v2.5.0\bootloader\mcuboot\boot\bootutil\src\image_validate.c.obj.d -o CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/image_validate.c.obj -c C:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/image_validate.c
In file included from C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/sysflash.h:10,
                 from C:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/bootutil_priv.h:33,
                 from C:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/image_validate.c:57:
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h: In function &amp;#39;__flash_area_ids_for_slot&amp;#39;:
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:37: error: &amp;#39;PM_MCUBOOT_PRIMARY_1_ID&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_MCUBOOT_PRIMARY_ID&amp;#39;?
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:37: note: each undeclared identifier is reported only once for each function it appears in
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:62: error: &amp;#39;PM_MCUBOOT_SECONDARY_1_ID&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_MCUBOOT_SECONDARY_ID&amp;#39;?
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[94/279] Building C object CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/bootutil_misc.c.obj
FAILED: CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/bootutil_misc.c.obj 
C:\ncs\toolchains\c57af46cb7\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\&amp;quot;mcuboot-mbedtls-cfg.h\&amp;quot; -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DUSE_PARTITION_MANAGER=1 -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/targets -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/include -IC:/ncs/v2.5.0/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.5.0/nrf/include -IC:/ncs/v2.5.0/nrf/tests/include -IC:/ncs/v2.5.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.5.0/zephyr/modules/cmsis/. -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.5.0/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.5.0/modules/crypto/mbedtls/include -IC:/ncs/v2.5.0/zephyr/modules/mbedtls/configs -IC:/ncs/v2.5.0/zephyr/modules/mbedtls/include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/.. -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/../include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/../../zephyr/include -isystem C:/ncs/v2.5.0/zephyr/lib/libc/minimal/include -isystem c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include -isystem c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include-fixed -isystem C:/ncs/v2.5.0/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros C:/ncs/2.5SDK/less8/build/mcuboot/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.5.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.5.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.5.0=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/bootutil_misc.c.obj -MF CMakeFiles\app.dir\C_\ncs\v2.5.0\bootloader\mcuboot\boot\bootutil\src\bootutil_misc.c.obj.d -o CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/bootutil_misc.c.obj -c C:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/bootutil_misc.c
In file included from C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/sysflash.h:10,
                 from C:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/bootutil_misc.c:32:
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h: In function &amp;#39;__flash_area_ids_for_slot&amp;#39;:
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:37: error: &amp;#39;PM_MCUBOOT_PRIMARY_1_ID&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_MCUBOOT_PRIMARY_ID&amp;#39;?
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:37: note: each undeclared identifier is reported only once for each function it appears in
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:62: error: &amp;#39;PM_MCUBOOT_SECONDARY_1_ID&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_MCUBOOT_SECONDARY_ID&amp;#39;?
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~
[95/279] Building C object CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/swap_move.c.obj
FAILED: CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/swap_move.c.obj 
C:\ncs\toolchains\c57af46cb7\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\&amp;quot;mcuboot-mbedtls-cfg.h\&amp;quot; -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DUSE_PARTITION_MANAGER=1 -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/targets -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/include -IC:/ncs/v2.5.0/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.5.0/nrf/include -IC:/ncs/v2.5.0/nrf/tests/include -IC:/ncs/v2.5.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.5.0/zephyr/modules/cmsis/. -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.5.0/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.5.0/modules/crypto/mbedtls/include -IC:/ncs/v2.5.0/zephyr/modules/mbedtls/configs -IC:/ncs/v2.5.0/zephyr/modules/mbedtls/include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/.. -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/../include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/../../zephyr/include -isystem C:/ncs/v2.5.0/zephyr/lib/libc/minimal/include -isystem c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include -isystem c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include-fixed -isystem C:/ncs/v2.5.0/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros C:/ncs/2.5SDK/less8/build/mcuboot/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.5.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.5.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.5.0=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/swap_move.c.obj -MF CMakeFiles\app.dir\C_\ncs\v2.5.0\bootloader\mcuboot\boot\bootutil\src\swap_move.c.obj.d -o CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/swap_move.c.obj -c C:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/swap_move.c
In file included from C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/sysflash.h:10,
                 from C:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/bootutil_priv.h:33,
                 from C:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/swap_move.c:25:
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h: In function &amp;#39;__flash_area_ids_for_slot&amp;#39;:
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:37: error: &amp;#39;PM_MCUBOOT_PRIMARY_1_ID&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_MCUBOOT_PRIMARY_ID&amp;#39;?
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:37: note: each undeclared identifier is reported only once for each function it appears in
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:62: error: &amp;#39;PM_MCUBOOT_SECONDARY_1_ID&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_MCUBOOT_SECONDARY_ID&amp;#39;?
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[96/279] Building C object CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/swap_misc.c.obj
FAILED: CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/swap_misc.c.obj 
C:\ncs\toolchains\c57af46cb7\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\&amp;quot;mcuboot-mbedtls-cfg.h\&amp;quot; -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DUSE_PARTITION_MANAGER=1 -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/targets -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/include -IC:/ncs/v2.5.0/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.5.0/nrf/include -IC:/ncs/v2.5.0/nrf/tests/include -IC:/ncs/v2.5.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.5.0/zephyr/modules/cmsis/. -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.5.0/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.5.0/modules/crypto/mbedtls/include -IC:/ncs/v2.5.0/zephyr/modules/mbedtls/configs -IC:/ncs/v2.5.0/zephyr/modules/mbedtls/include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/.. -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/../include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/../../zephyr/include -isystem C:/ncs/v2.5.0/zephyr/lib/libc/minimal/include -isystem c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include -isystem c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include-fixed -isystem C:/ncs/v2.5.0/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros C:/ncs/2.5SDK/less8/build/mcuboot/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.5.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.5.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.5.0=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/swap_misc.c.obj -MF CMakeFiles\app.dir\C_\ncs\v2.5.0\bootloader\mcuboot\boot\bootutil\src\swap_misc.c.obj.d -o CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/swap_misc.c.obj -c C:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/swap_misc.c
In file included from C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/sysflash.h:10,
                 from C:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/bootutil_priv.h:33,
                 from C:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/swap_misc.c:25:
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h: In function &amp;#39;__flash_area_ids_for_slot&amp;#39;:
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:37: error: &amp;#39;PM_MCUBOOT_PRIMARY_1_ID&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_MCUBOOT_PRIMARY_ID&amp;#39;?
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:37: note: each undeclared identifier is reported only once for each function it appears in
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:62: error: &amp;#39;PM_MCUBOOT_SECONDARY_1_ID&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_MCUBOOT_SECONDARY_ID&amp;#39;?
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~
[97/279] Building C object CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/loader.c.obj
FAILED: CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/loader.c.obj 
C:\ncs\toolchains\c57af46cb7\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\&amp;quot;mcuboot-mbedtls-cfg.h\&amp;quot; -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DUSE_PARTITION_MANAGER=1 -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/targets -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/include -IC:/ncs/v2.5.0/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.5.0/nrf/include -IC:/ncs/v2.5.0/nrf/tests/include -IC:/ncs/v2.5.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.5.0/zephyr/modules/cmsis/. -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.5.0/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.5.0/modules/crypto/mbedtls/include -IC:/ncs/v2.5.0/zephyr/modules/mbedtls/configs -IC:/ncs/v2.5.0/zephyr/modules/mbedtls/include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/.. -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/../include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/../../zephyr/include -isystem C:/ncs/v2.5.0/zephyr/lib/libc/minimal/include -isystem c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include -isystem c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include-fixed -isystem C:/ncs/v2.5.0/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros C:/ncs/2.5SDK/less8/build/mcuboot/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.5.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.5.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.5.0=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/loader.c.obj -MF CMakeFiles\app.dir\C_\ncs\v2.5.0\bootloader\mcuboot\boot\bootutil\src\loader.c.obj.d -o CMakeFiles/app.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/loader.c.obj -c C:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/loader.c
In file included from C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/sysflash.h:10,
                 from C:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/bootutil_priv.h:33,
                 from C:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/loader.c:41:
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h: In function &amp;#39;__flash_area_ids_for_slot&amp;#39;:
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:37: error: &amp;#39;PM_MCUBOOT_PRIMARY_1_ID&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_MCUBOOT_PRIMARY_ID&amp;#39;?
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:37: note: each undeclared identifier is reported only once for each function it appears in
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:62: error: &amp;#39;PM_MCUBOOT_SECONDARY_1_ID&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_MCUBOOT_SECONDARY_ID&amp;#39;?
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~&lt;/pre&gt;&lt;pre class="ui-code" data-mode="text"&gt;ninja: build stopped: subcommand failed.
[20/178] Building C object modules/mcuboot/boot/bootutil/zephyr/CMakeFiles/mcuboot_util.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c.obj
FAILED: modules/mcuboot/boot/bootutil/zephyr/CMakeFiles/mcuboot_util.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c.obj 
C:\ncs\toolchains\c57af46cb7\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DPICOLIBC_INTEGER_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -DZCBOR_ASSERTS -D_FORTIFY_SOURCE=1 -D_POSIX_C_SOURCE=200809 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v2.5.0/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.5.0/zephyr/subsys/mgmt/mcumgr/util/include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/include -IC:/ncs/v2.5.0/zephyr/subsys/mgmt/mcumgr/transport/include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include -IC:/ncs/v2.5.0/zephyr/subsys/bluetooth -IC:/ncs/v2.5.0/zephyr/subsys/settings/include -IC:/ncs/v2.5.0/nrf/include -IC:/ncs/v2.5.0/nrf/tests/include -IC:/ncs/v2.5.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.5.0/zephyr/modules/cmsis/. -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.5.0/zephyr/modules/hal_nordic/nrfx/. -Imodules/libmetal/libmetal/lib/include -IC:/ncs/v2.5.0/modules/lib/open-amp/open-amp/lib/include -IC:/ncs/v2.5.0/modules/crypto/tinycrypt/lib/include -IC:/ncs/v2.5.0/modules/lib/zcbor/include -IC:/ncs/v2.5.0/nrfxlib/softdevice_controller/include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/.. -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/../include -IC:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/zephyr/../../zephyr/include -isystem C:/ncs/v2.5.0/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros C:/ncs/2.5SDK/less8/build/zephyr/include/generated/autoconf.h -fno-printf-return-value -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.5.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/ncs/2.5SDK/less8=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.5.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.5.0=WEST_TOPDIR -ffunction-sections -fdata-sections --specs=picolibc.specs -std=c99 -MD -MT modules/mcuboot/boot/bootutil/zephyr/CMakeFiles/mcuboot_util.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c.obj -MF modules\mcuboot\boot\bootutil\zephyr\CMakeFiles\mcuboot_util.dir\C_\ncs\v2.5.0\bootloader\mcuboot\boot\bootutil\src\bootutil_public.c.obj.d -o modules/mcuboot/boot/bootutil/zephyr/CMakeFiles/mcuboot_util.dir/C_/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c.obj -c C:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c
In file included from C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/sysflash.h:10,
                 from C:/ncs/v2.5.0/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c:43:&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h: In function &amp;#39;__flash_area_ids_for_slot&amp;#39;:
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:37: error: &amp;#39;PM_MCUBOOT_PRIMARY_1_ID&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_MCUBOOT_PRIMARY_ID&amp;#39;?
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:37: note: each undeclared identifier is reported only once for each function it appears in
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:48:62: error: &amp;#39;PM_MCUBOOT_SECONDARY_1_ID&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PM_MCUBOOT_SECONDARY_ID&amp;#39;?
   48 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID
      |                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:55:29: note: in expansion of macro &amp;#39;FLASH_AREA_IMAGE_1_SLOTS&amp;#39;
   55 |                             FLASH_AREA_IMAGE_1_SLOTS
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.5.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:67:9: note: in expansion of macro &amp;#39;ALL_AVAILABLE_SLOTS&amp;#39;
   67 |         ALL_AVAILABLE_SLOTS
      |         ^~~~~~~~~~~~~~~~~~~&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It looks to me that after deleting the external flash partitions, there are partitions missing for the multiimage flash. Also the DevAcademy says, that &amp;quot;some partitions&amp;quot; have to be created&lt;/p&gt;
&lt;p&gt;&lt;em&gt;6.2 From the documentation, we must create some partitions. If we enable external flash in the project, these partitions will be automatically created. For simultaneous updates, we most often want to use external flash either way, to give the application more flash to work with, so we will enable external flash here. We will use the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#external-flash-memory-partitions"&gt;partition manager to enable external flash&lt;/a&gt;. There are several ways to&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/build/dts/howtos.html#set-devicetree-overlays"&gt;set devicetree overlays&lt;/a&gt;. You can choose whatever fits you best, but for this exercise we will just use&amp;nbsp;&lt;code&gt;app.overlay&lt;/code&gt;, added directly to the project directory.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But there is just how to do it with the external flash.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;To do it without external flash, I have to create pm.ylm file in the project folder I guess, but I do not realy know, what is to be defined there.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I guess there is a lot of information here, but I am not&amp;nbsp;sure, which I should use in my case&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#external-flash-memory-partitions"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#external-flash-memory-partitions&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Are there maybe some other samples&amp;nbsp;showing how could I implement it?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks a lot for the support&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jiri&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/thread/477839?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 13:49:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39e95b78-9b67-4cec-b7c2-99c0a6c231de</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;To verify, that this is actually your problem, look into your ./build folder and look up the `partitions.yml` file. If that contains an entry named `external_flash`, then this is probably your problem. Maybe, it happened due to enabling the external flash in one of your .overload files. See if you find the&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
    chosen {
        nordic,pm-ext-flash = &amp;amp;mx25r64;
    };
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;section or something similar and delete it (if you do not have an external flash memory in your target hardware).&lt;/p&gt;
&lt;p&gt;HTH Torsten&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/thread/477835?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 13:38:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:739eeeb6-e781-46fb-b9be-7449f4379981</guid><dc:creator>Jirik</dc:creator><description>&lt;p&gt;Hi Torsten,&lt;/p&gt;
&lt;p&gt;thanks a lot for the hint, could you please give me some advice, how should I fix this, sorry if it is too obvious, but I do not have much experience in this area...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Jiri&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/thread/477833?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 13:35:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d89bc02b-3b61-42ba-961a-704da4c6a1db</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;To me, it looks like, you configured the bootloader to read images from the external flash memory, which exists on the eval board, but not on the NORA B1. Thus, the bootloader is not able to access the external flash memory and bails out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/thread/477832?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 13:32:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c52dd872-1698-451f-8a21-0ccfc886c36b</guid><dc:creator>Jirik</dc:creator><description>&lt;p&gt;Hello Abhijith,&lt;/p&gt;
&lt;p&gt;on&amp;nbsp;which device did you flash the program? The problem is still the same, that the program is going fine on the nRF5340DK, but when I flash it on the NORA B1 SoC, the device does not boot. I suppose the problem at the configuration&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BOOTLOADER_MCUBOOT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Because when I delete this and build it again, it works fine on the NORA B1. But I just need the OTA DFU. I suppose that I need to configure something more, but don&amp;#39;t know what...&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Could you please maybe send me your programm folder, so I can be sure, that I did not forgot something?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thanks a lot in advance&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Jiri&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/thread/477805?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 12:45:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c64131b-ab8b-4c11-a652-98c9a2d37d94</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I tried the sample inside the NCS v2.5.0, and it&amp;#39;s working fine on my side. I tried the below configuration (screenshot) inside prj.config. I also enabled the internal RC oscillator as the low-frequency clock source inside the mcuboot.config. Please see that you don&amp;#39;t need to enable CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM, as it will be enabled by default (&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/328411d85839340607fe033fa4de4f59cb2eb038/drivers/clock_control/Kconfig.nrf#L134"&gt;see &lt;/a&gt;here). My device is advertising properly, and I can&amp;#39;t produce any warnings.&lt;br /&gt;&lt;br /&gt;Please let me know if I am missing anything here.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1712666503489v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/thread/477475?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 07:59:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df315a21-9101-429a-9f9c-db0e7af4bf06</guid><dc:creator>Jirik</dc:creator><description>&lt;p&gt;Hello Abhijith,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks for the reply, yes I will stick to v2.5.0. I am building for nrf5340dk_nrf5340_cpuapp.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Jiri&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/thread/477471?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 07:44:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:687882d4-6efb-4619-93ed-4a1b8ad78091</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I will take a look into this. Could you tell me which board you are building it for (inside the build configuration)? I assume that you are sticking to NCS version 2.5.0, so I will do the testing with that version.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/thread/477171?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 14:37:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80f8052d-e725-415f-aa61-fad4855ae7dd</guid><dc:creator>Jirik</dc:creator><description>&lt;p&gt;Hello Abhijith,&lt;/p&gt;
&lt;p&gt;thanks a lot for the tip. It unfortunately does not work and the problem remains.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;One thing I realised: while compiling I got this warning:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;warning: NRF53_RECOVERY_NETWORK_CORE (defined at&lt;br /&gt;C:/ncs/v2.5.0/nrf/modules/mcuboot/boot/zephyr/Kconfig:130) was assigned the value &amp;#39;y&amp;#39; but got the&lt;br /&gt;value &amp;#39;n&amp;#39;. Check these unsatisfied dependencies: (!NRF53_MULTI_IMAGE_UPDATE) (=n),&lt;br /&gt;MCUBOOT_SERIAL_DIRECT_IMAGE_UPLOAD (=n). See&lt;br /&gt;&lt;a href="http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_NRF53_RECOVERY_NETWORK_CORE"&gt;docs.zephyrproject.org/.../kconfig.html&lt;/a&gt; and/or look up&lt;br /&gt;NRF53_RECOVERY_NETWORK_CORE in the menuconfig/guiconfig interface. The Application Development&lt;br /&gt;Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual&lt;br /&gt;might be helpful too.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I defined the&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NRF53_MULTI_IMAGE_UPDATE&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;like it is in the sample from the Development Academy, but when I try to define&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MCUBOOT_SERIAL_DIRECT_IMAGE_UPLOAD in the prj.conf, it gives me Fatal error as unknown symbol.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;when I define it in mcuboot.conf, it does not change anything and I still get the same warning.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Could it be the reason of this problem, and if it is that case, could you please help me to lose it?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Kind Regards&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Jiri&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU on NORA B1</title><link>https://devzone.nordicsemi.com/thread/477106?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 12:48:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1269a7fe-3fe3-43ef-96c7-28e5496b31c4</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You might need to include the clock source for the mcuboot build as well. Could you try to enable the config CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y inside the mcuboot.config? For that, you can create a mcuboot folder inside the child image folder and include the config file there:&lt;span style="color:rgba(0, 0, 255, 1);"&gt; child_image-&amp;gt;mcuboot-&amp;gt;mcuboot.config.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:rgba(0, 0, 255, 1);"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:rgba(0, 0, 0, 1);"&gt;Kind Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:rgba(0, 0, 0, 1);"&gt;Abhijith&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:rgba(0, 0, 255, 1);"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>