<?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>[NCS v2.2.0] - Device Firmware Update (DFU) via OTA using BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96939/ncs-v2-2-0---device-firmware-update-dfu-via-ota-using-ble</link><description>Hi 
 In order to add DFU function to our custom board (integrating nRF52840) over OTA by using BLE, we refer to the guide named &amp;quot; Adding DFU support to your application &amp;quot; and use the same procedure (include the sample) from the &amp;quot; DFU over Bluetooth &amp;quot;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Mar 2023 11:55:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96939/ncs-v2-2-0---device-firmware-update-dfu-via-ota-using-ble" /><item><title>RE: [NCS v2.2.0] - Device Firmware Update (DFU) via OTA using BLE</title><link>https://devzone.nordicsemi.com/thread/415680?ContentTypeID=1</link><pubDate>Thu, 16 Mar 2023 11:55:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e113d56-11bd-4b95-b306-279931ab9615</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="Kevin6_Lin"]You mean when nRF52840&amp;#39;s firmware needs to be updated, I can use trigger mechanism to make nRF52840 enter bootloader mode? The nRF52840 is then able to automatically switch between central and peripheral. Is my understanding correct?[/quote]
&lt;p&gt;Yes that&amp;#39;s correct.&lt;/p&gt;
[quote user="Kevin6_Lin"]For your suggestion, I&amp;#39;ll create a new thread for this question[/quote]
&lt;p&gt;I would really appreciate that.&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;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS v2.2.0] - Device Firmware Update (DFU) via OTA using BLE</title><link>https://devzone.nordicsemi.com/thread/415611?ContentTypeID=1</link><pubDate>Thu, 16 Mar 2023 07:53:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb20d23f-a28a-4f35-b666-4af55224db00</guid><dc:creator>Kevin Lin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the detailed explanation.&lt;/p&gt;
&lt;p&gt;You mean when nRF52840&amp;#39;s firmware needs to be updated, I can use trigger mechanism to make nRF52840 enter bootloader mode? The nRF52840 is then able to automatically switch between central and peripheral. Is my understanding correct?&lt;/p&gt;
&lt;p&gt;If yes, I have an idea about the trigger mechanism. According to our project design, nRF52840 plays a central role (&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/central_hids/README.html" rel="noopener noreferrer" target="_blank"&gt;Central HIDS&lt;/a&gt;). I can design a button that if short pressed, the nRF52840 will start the peripheral&amp;#39;s initial program. It will then enter bootloader mode (SMP server). After the firmware update is complete, the nRF52840 will revert to the central role. For the initialization procedure of peripherals, I can refer to the &lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/ncs-dfu#:~:text=on%20the%20nRF5340-,DFU%20over%20Bluetooth,-Modify%20the%20Peripheral" rel="noopener noreferrer" target="_blank"&gt;DFU over Bluetooth&lt;/a&gt; section in the guide of &lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/ncs-dfu" rel="noopener noreferrer" target="_blank"&gt;Add DFU support to your application&lt;/a&gt;. That is, can I add the &lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/ncs-dfu#:~:text=on%20the%20nRF5340-,DFU%20over%20Bluetooth,-Modify%20the%20Peripheral" rel="noopener noreferrer" target="_blank"&gt;DFU over Bluetooth&lt;/a&gt; part (containing the peripheral code) to the central HIDS code using a trigger mechanism? Is that possible?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For your suggestion, I&amp;#39;ll create a new thread for this question.&lt;/p&gt;
&lt;p&gt;I really appreciate the help and support that you and&lt;span&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/afnowakowski"&gt;Aleksander Nowakowski&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;have given me during these days.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kevin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS v2.2.0] - Device Firmware Update (DFU) via OTA using BLE</title><link>https://devzone.nordicsemi.com/thread/415585?ContentTypeID=1</link><pubDate>Thu, 16 Mar 2023 03:23:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b985695-9b6d-463d-b796-50cd14089bca</guid><dc:creator>Kevin Lin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The peripheral is a remote control. The use case is that the nRF52840 (central) connects to a remote control (peripheral) and the sample we refer to is &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/central_hids/README.html" rel="noopener noreferrer" target="_blank"&gt;Central HIDS&lt;/a&gt;. If the user presses a key on the remote control, the remote control will sent a key event to the nRF52840. Then nRF52840 will do the next step we need.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The above situation is under normal use. But if the use case becomes more complex or bugs arise, the nRF52840&amp;#39;s firmware will inevitably need to be updated in the future to support more functions or fix problems. When this requirement occurs, we will use the Android/iOS app developed by your company to update the firmware, for example: &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-connect-for-mobile" rel="noopener noreferrer" target="_blank"&gt;nRF Connect for Mobile&lt;/a&gt; or &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-connect-device-manager" rel="noopener noreferrer" target="_blank"&gt;nRF Connect Device Manager&lt;/a&gt;. In this case, the nRF52840 needs to connect to a Android/iOS device (not just a phone) for updating its firmware.&lt;/p&gt;
&lt;p&gt;As you said, our situation is probably more like the second one. Glad to hear this feature is actually possible. I&amp;#39;ll try to implement it by myself.&lt;/p&gt;
&lt;p&gt;For your suggestion, I&amp;#39;ll create a new thread for this question.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I really appreciate the help and support that you and &lt;a href="https://devzone.nordicsemi.com/members/menon"&gt;Menon&lt;/a&gt;&amp;nbsp;have given me during these days.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kevin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS v2.2.0] - Device Firmware Update (DFU) via OTA using BLE</title><link>https://devzone.nordicsemi.com/thread/415534?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 15:26:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a23fe707-0185-4e40-991f-d2d0f8577629</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Glad to hear that you finally succeed in doing the OTA DFU.&lt;/p&gt;
&lt;p&gt;What Aleksander Mentioned is true. But you can switch between central and peripheral role in the same device.&amp;nbsp;&lt;span&gt;&lt;span dir="ltr"&gt;Lets say your Application is working with central role and when it enters bootloader mode for doing the OTA DFU it can turn into peripheral and connect with another device (may be phone). Now the phone(central) can send the image and after a successful upload the chip will reset and your Application will start, acting as central.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;This thread is too long. So I also suggest you to start a new case if you have further doubt on this issue. This will keep the Devzone tidy and easy for other users.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Kind Regards,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Abhijith&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS v2.2.0] - Device Firmware Update (DFU) via OTA using BLE</title><link>https://devzone.nordicsemi.com/thread/415435?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 12:08:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b07f6a92-00cc-4377-ad93-bdf2ffce2ed7</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In your design, what is the device acting as peripheral? Is it another device, or a phone?&lt;/p&gt;
&lt;p&gt;When you have a single connection (e.g. phone - device), both sides can have list of services for the other to use. Both sides can do service discovery, read and write each others characteristics as clients and send notifications as servers.&lt;/p&gt;
&lt;p&gt;But if you want to have a connection &amp;quot;device A - device B&amp;quot; plus sometimes &amp;quot;phone - device A&amp;quot; to update it, you need to implement it on the fw side. Technically it is possible, but &lt;a href="https://devzone.nordicsemi.com/members/menon"&gt;Menon&lt;/a&gt; should know much more.&lt;/p&gt;
&lt;p&gt;I would recommend creating a new thread for a different issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS v2.2.0] - Device Firmware Update (DFU) via OTA using BLE</title><link>https://devzone.nordicsemi.com/thread/415371?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 07:37:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe4acf1c-22ac-4844-a4e3-be407ed29b5e</guid><dc:creator>Kevin Lin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;got a real nRF52840DK and tried the same procedure. The result is the same.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But after I thought about it carefully, the content of the test code file you gave earlier is not much different from mine, and there is no problem with the DFU test method I used, so the remaining part of the difference is the computer that builds the code.&lt;/p&gt;
&lt;p&gt;After changing to a new computer and testing the same steps, the DFU function is successful, and the preview-DK board can also use the DFU function normally. I am not sure if the path of the original computer to install the SDK is not the default path causing this problem, but after reinstalling the SDK on the original computer with the default path, DFU is also normal.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please refer to the pictures and attached files below for the results.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf52840dk_5F00_dfu_5F00_ble_5F00_2023_2D00_03_2D00_14.log"&gt;devzone.nordicsemi.com/.../nrf52840dk_5F00_dfu_5F00_ble_5F00_2023_2D00_03_2D00_14.log&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nRF Connect for Mobile (iOS)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:360px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/4/1157._16574772_1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Device Manager (iOS)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:360px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/4/_16574772_2.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:360px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/4/1122._16574772_3.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Incidentally, because of our project design, the nRF52840 chip plays a central role connecting a peripheral device. However, if the DFU function is to be used, the chip must play the role of a peripheral. Can the chip play the role of the central and peripheral at the same time? Is there any method or information that can be used for reference?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;According to the above question, do I need to create a new thread?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thank you for all your help.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kevin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS v2.2.0] - Device Firmware Update (DFU) via OTA using BLE</title><link>https://devzone.nordicsemi.com/thread/414644?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2023 13:01:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d409270-ce54-41bd-843e-6a88599c4bf6</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thanks for sharing the details. I strongly suggest to try with our DK and I don&amp;#39;t have a PDK right now for testing this. Please try with DK and let me know if the same is happening.&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;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS v2.2.0] - Device Firmware Update (DFU) via OTA using BLE</title><link>https://devzone.nordicsemi.com/thread/414308?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 09:02:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7ce3dfa-1c73-40fb-a3ec-9ffa55a90693</guid><dc:creator>Kevin Lin</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Abhijith,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Ok, I&amp;#39;ll figure out how to get an nRF52840DK. After that I will try the same procedure again and let you know the result.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have tried the method you provided. The result is the same.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;All the commands I used and the results are as follows.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The build command&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;west build --build-dir /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs --pristine --board nrf52840dk_nrf52840 -- -DNCS_TOOLCHAIN_VERSION:STRING=&amp;quot;NONE&amp;quot; -DBOARD_ROOT:STRING=&amp;quot;/mnt/hdd/nordic/code/ble_dfu_peripheral_lbs&amp;quot; -DCONF_FILE:STRING=&amp;quot;/mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/prj.conf&amp;quot;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The build result&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;-- west build: making build dir /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build pristine
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs
-- Found Python3: /mnt/hdd/nordic/toolchains/v2.2.0/usr/local/bin/python3.8 (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter 
-- Cache files will be written to: /home/kevin/.cache/zephyr
-- Zephyr version: 3.2.99 (/mnt/hdd/nordic/v2.2.0/zephyr)
-- Found west (found suitable version &amp;quot;0.14.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: nrf52840dk_nrf52840
-- Found host-tools: zephyr 0.15.1 (/mnt/hdd/nordic/toolchains/v2.2.0/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.15.1 (/mnt/hdd/nordic/toolchains/v2.2.0/opt/zephyr-sdk)
-- Found Dtc: /mnt/hdd/nordic/toolchains/v2.2.0/usr/bin/dtc (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;) 
-- Found BOARD.dts: /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
-- Generated zephyr.dts: /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/zephyr/dts.cmake
Parsing /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/Kconfig
Loaded configuration &amp;#39;/mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig&amp;#39;
Merged configuration &amp;#39;/mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/prj.conf&amp;#39;
Configuration saved to &amp;#39;/mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;/mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/zephyr/include/generated/autoconf.h&amp;#39;

warning: MCUMGR_CMD_STAT_MGMT (defined at subsys/mgmt/mcumgr/lib/cmd/stat_mgmt/Kconfig:5) was
assigned the value &amp;#39;y&amp;#39; but got the value &amp;#39;n&amp;#39;. Check these unsatisfied dependencies: STATS (=n). See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUMGR_CMD_STAT_MGMT and/or look up
MCUMGR_CMD_STAT_MGMT in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.

-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: /mnt/hdd/nordic/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Found Python3: /mnt/hdd/nordic/toolchains/v2.2.0/usr/local/bin/python3.8 (found version &amp;quot;3.8.2&amp;quot;) found components: Interpreter 

=== child image mcuboot -  begin ===
loading initial cache file /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/mcuboot/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/zephyr
-- Found Python3: /mnt/hdd/nordic/toolchains/v2.2.0/usr/local/bin/python3.8 (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter 
-- Cache files will be written to: /home/kevin/.cache/zephyr
-- Zephyr version: 3.2.99 (/mnt/hdd/nordic/v2.2.0/zephyr)
-- Found west (found suitable version &amp;quot;0.14.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: nrf52840dk_nrf52840
-- Found host-tools: zephyr 0.15.1 (/mnt/hdd/nordic/toolchains/v2.2.0/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.15.1 (/mnt/hdd/nordic/toolchains/v2.2.0/opt/zephyr-sdk)
-- Found Dtc: /mnt/hdd/nordic/toolchains/v2.2.0/usr/bin/dtc (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;) 
-- Found BOARD.dts: /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
-- Found devicetree overlay: /mnt/hdd/nordic/v2.2.0/nrf/modules/mcuboot/usb.overlay
-- Found devicetree overlay: /mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/zephyr/dts.overlay
-- Generated zephyr.dts: /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/mcuboot/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/mcuboot/zephyr/dts.cmake
Parsing /mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration &amp;#39;/mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig&amp;#39;
Merged configuration &amp;#39;/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/zephyr/prj.conf&amp;#39;
Merged configuration &amp;#39;/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/zephyr/boards/nrf52840dk_nrf52840.conf&amp;#39;
Merged configuration &amp;#39;/mnt/hdd/nordic/v2.2.0/nrf/subsys/partition_manager/partition_manager_enabled.conf&amp;#39;
Merged configuration &amp;#39;/mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf&amp;#39;
Configuration saved to &amp;#39;/mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/mcuboot/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;/mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/mcuboot/zephyr/include/generated/autoconf.h&amp;#39;
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: /mnt/hdd/nordic/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Warning at /mnt/hdd/nordic/v2.2.0/nrf/lib/flash_patch/CMakeLists.txt:8 (message):
  

        ----------------------------------------------------------
        --- WARNING: To maintain the integrity of secure boot, ---
        --- enable CONFIG_DISABLE_FLASH_PATCH in production.   ---
        ----------------------------------------------------------


MCUBoot bootloader key file: /mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/root-ec-p256.pem
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/mcuboot
=== child image mcuboot -  end ===

CMake Warning at /mnt/hdd/nordic/v2.2.0/nrf/modules/mcuboot/CMakeLists.txt:286 (message):
  

          ---------------------------------------------------------
          --- WARNING: Using default MCUBoot key, it should not ---
          --- be used for production.                           ---
          ---------------------------------------------------------
          



CMake Warning at /mnt/hdd/nordic/v2.2.0/zephyr/CMakeLists.txt:1833 (message):
  __ASSERT() statements are globally ENABLED


-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build
-- west build: building application
[1/312] Preparing syscall dependency handling

[2/312] Generating include/generated/version.h
-- Zephyr version: 3.2.99 (/mnt/hdd/nordic/v2.2.0/zephyr), build: v3.2.99-ncs1
[8/312] Performing build step for &amp;#39;mcuboot_subimage&amp;#39;
[1/190] Preparing syscall dependency handling

[2/190] Generating include/generated/version.h
-- Zephyr version: 3.2.99 (/mnt/hdd/nordic/v2.2.0/zephyr), build: v3.2.99-ncs1
[180/190] Linking C executable zephyr/zephyr_pre0.elf

[184/190] Linking C executable zephyr/zephyr_pre1.elf

[190/190] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       33708 B        48 KB     68.58%
             RAM:       17792 B       256 KB      6.79%
        IDT_LIST:          0 GB         2 KB      0.00%
[291/312] Linking C executable zephyr/zephyr_pre0.elf

[298/312] Linking C executable zephyr/zephyr_pre1.elf

[304/312] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:      255520 B     482816 B     52.92%
             RAM:       67884 B       256 KB     25.90%
        IDT_LIST:          0 GB         2 KB      0.00%
[307/312] Generating ../../zephyr/app_update.bin
sign the payload
[309/312] Generating ../../zephyr/app_signed.hex
sign the payload
[310/312] Generating ../../zephyr/app_test_update.hex
sign the payload
[312/312] Generating zephyr/merged.hex&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The flash command&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;west flash --erase&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The flash result&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;-- west flash: rebuilding
[0/4] Performing build step for &amp;#39;mcuboot_subimage&amp;#39;
ninja: no work to do.
-- west flash: using runner nrfjprog
-- runners.nrfjprog: mass erase requested
Using board 683159654
-- runners.nrfjprog: Flashing file: /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/zephyr/merged.hex
[ #################### ]   0.286s | Erase file - Done erasing                                                          
[ #################### ]   3.548s | Program file - Done programming                                                    
[ #################### ]   3.483s | Verify file - Done verifying                                                       
Enabling pin reset.
Applying pin reset.
-- runners.nrfjprog: Board with serial number 683159654 flashed successfully.&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Finally, the screenshot of the DFU result via nRF Connect for Mobile (iOS) is below.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:360px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/4/IMG_5F00_4302.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for your help.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kevin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS v2.2.0] - Device Firmware Update (DFU) via OTA using BLE</title><link>https://devzone.nordicsemi.com/thread/413784?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2023 10:48:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42076390-987f-411d-8bcd-5eaa17f8a91c</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please see that you are not trying with nRF52840DK your hardware is a preview development kit.&lt;span&gt;&amp;nbsp;PDKs should only be used for evaluation purposes, and I would recommend getting a DK instead. &lt;/span&gt;&amp;nbsp;PDK is not officially supported by our new nRF connect SDK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As a last try use&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/getting_started/programming.html#:~:text=build%20files.-,Building%20on%20the%20command%20line,%EF%83%81,-After%20completing%20the"&gt; west command line for building and flashing&lt;/a&gt; the application and see whether the same is happening.&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;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS v2.2.0] - Device Firmware Update (DFU) via OTA using BLE</title><link>https://devzone.nordicsemi.com/thread/413145?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2023 06:28:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd82cd58-3afb-4cf8-b2f3-ff7326370ab6</guid><dc:creator>Kevin Lin</dc:creator><description>&lt;p&gt;Hi &lt;span&gt;Abhijith&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;I just tried the file you shared, but the result is still the same.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;screenshot of the build configuration.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:360px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/4/Screenshot-from-2023_2D00_03_2D00_03-10_2D00_22_2D00_59.png" /&gt;&lt;/p&gt;
&lt;p&gt;The log of the build result.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; *  Executing task: nRF Connect: Build [pristine]: peripheral_lbs_DFU_support_OTA/build (active) 

Building peripheral_lbs_DFU_support_OTA
west build --build-dir /mnt/hdd/nordic/code/peripheral_lbs_DFU_support_OTA/build /mnt/hdd/nordic/code/peripheral_lbs_DFU_support_OTA --pristine --board nrf52840dk_nrf52840 -- -DNCS_TOOLCHAIN_VERSION:STRING=&amp;quot;NONE&amp;quot; -DBOARD_ROOT:STRING=&amp;quot;/mnt/hdd/nordic/code/ble_dfu_peripheral_lbs;/mnt/hdd/nordic/code/smp_svr;/mnt/hdd/nordic/code/vasco;/mnt/hdd/nordic/code/peripheral_lbs_DFU_support_OTA&amp;quot; -DCONF_FILE:STRING=&amp;quot;/mnt/hdd/nordic/code/peripheral_lbs_DFU_support_OTA/prj.conf&amp;quot;

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /mnt/hdd/nordic/code/peripheral_lbs_DFU_support_OTA
-- Found Python3: /mnt/hdd/nordic/toolchains/v2.2.0/usr/local/bin/python3.8 (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter 
-- Cache files will be written to: /home/kevin/.cache/zephyr
-- Zephyr version: 3.2.99 (/mnt/hdd/nordic/v2.2.0/zephyr)
-- Found west (found suitable version &amp;quot;0.14.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: nrf52840dk_nrf52840
-- Found host-tools: zephyr 0.15.1 (/mnt/hdd/nordic/toolchains/v2.2.0/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.15.1 (/mnt/hdd/nordic/toolchains/v2.2.0/opt/zephyr-sdk)
-- Found Dtc: /mnt/hdd/nordic/toolchains/v2.2.0/usr/bin/dtc (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;) 
-- Found BOARD.dts: /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
-- Generated zephyr.dts: /mnt/hdd/nordic/code/peripheral_lbs_DFU_support_OTA/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /mnt/hdd/nordic/code/peripheral_lbs_DFU_support_OTA/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /mnt/hdd/nordic/code/peripheral_lbs_DFU_support_OTA/build/zephyr/dts.cmake
Parsing /mnt/hdd/nordic/code/peripheral_lbs_DFU_support_OTA/Kconfig
Loaded configuration &amp;#39;/mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig&amp;#39;
Merged configuration &amp;#39;/mnt/hdd/nordic/code/peripheral_lbs_DFU_support_OTA/prj.conf&amp;#39;
Configuration saved to &amp;#39;/mnt/hdd/nordic/code/peripheral_lbs_DFU_support_OTA/build/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;/mnt/hdd/nordic/code/peripheral_lbs_DFU_support_OTA/build/zephyr/include/generated/autoconf.h&amp;#39;
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: /mnt/hdd/nordic/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Found Python3: /mnt/hdd/nordic/toolchains/v2.2.0/usr/local/bin/python3.8 (found version &amp;quot;3.8.2&amp;quot;) found components: Interpreter 

=== child image mcuboot -  begin ===
loading initial cache file /mnt/hdd/nordic/code/peripheral_lbs_DFU_support_OTA/build/mcuboot/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/zephyr
-- Found Python3: /mnt/hdd/nordic/toolchains/v2.2.0/usr/local/bin/python3.8 (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter 
-- Cache files will be written to: /home/kevin/.cache/zephyr
-- Zephyr version: 3.2.99 (/mnt/hdd/nordic/v2.2.0/zephyr)
-- Found west (found suitable version &amp;quot;0.14.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: nrf52840dk_nrf52840
-- Found host-tools: zephyr 0.15.1 (/mnt/hdd/nordic/toolchains/v2.2.0/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.15.1 (/mnt/hdd/nordic/toolchains/v2.2.0/opt/zephyr-sdk)
-- Found Dtc: /mnt/hdd/nordic/toolchains/v2.2.0/usr/bin/dtc (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;) 
-- Found BOARD.dts: /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
-- Found devicetree overlay: /mnt/hdd/nordic/v2.2.0/nrf/modules/mcuboot/usb.overlay
-- Found devicetree overlay: /mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/zephyr/dts.overlay
-- Generated zephyr.dts: /mnt/hdd/nordic/code/peripheral_lbs_DFU_support_OTA/build/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /mnt/hdd/nordic/code/peripheral_lbs_DFU_support_OTA/build/mcuboot/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /mnt/hdd/nordic/code/peripheral_lbs_DFU_support_OTA/build/mcuboot/zephyr/dts.cmake
Parsing /mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration &amp;#39;/mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig&amp;#39;
Merged configuration &amp;#39;/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/zephyr/prj.conf&amp;#39;
Merged configuration &amp;#39;/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/zephyr/boards/nrf52840dk_nrf52840.conf&amp;#39;
Merged configuration &amp;#39;/mnt/hdd/nordic/v2.2.0/nrf/subsys/partition_manager/partition_manager_enabled.conf&amp;#39;
Merged configuration &amp;#39;/mnt/hdd/nordic/code/peripheral_lbs_DFU_support_OTA/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf&amp;#39;
Configuration saved to &amp;#39;/mnt/hdd/nordic/code/peripheral_lbs_DFU_support_OTA/build/mcuboot/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;/mnt/hdd/nordic/code/peripheral_lbs_DFU_support_OTA/build/mcuboot/zephyr/include/generated/autoconf.h&amp;#39;
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: /mnt/hdd/nordic/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Warning at /mnt/hdd/nordic/v2.2.0/nrf/lib/flash_patch/CMakeLists.txt:8 (message):
  

        ----------------------------------------------------------
        --- WARNING: To maintain the integrity of secure boot, ---
        --- enable CONFIG_DISABLE_FLASH_PATCH in production.   ---
        ----------------------------------------------------------


MCUBoot bootloader key file: /mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/root-ec-p256.pem
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/hdd/nordic/code/peripheral_lbs_DFU_support_OTA/build/mcuboot
=== child image mcuboot -  end ===

CMake Warning at /mnt/hdd/nordic/v2.2.0/nrf/modules/mcuboot/CMakeLists.txt:286 (message):
  

          ---------------------------------------------------------
          --- WARNING: Using default MCUBoot key, it should not ---
          --- be used for production.                           ---
          ---------------------------------------------------------
          



CMake Warning at /mnt/hdd/nordic/v2.2.0/zephyr/CMakeLists.txt:1833 (message):
  __ASSERT() statements are globally ENABLED


-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/hdd/nordic/code/peripheral_lbs_DFU_support_OTA/build
-- west build: building application
[1/280] Preparing syscall dependency handling

[2/280] Generating include/generated/version.h
-- Zephyr version: 3.2.99 (/mnt/hdd/nordic/v2.2.0/zephyr), build: v3.2.99-ncs1
[3/280] Creating directories for &amp;#39;mcuboot_subimage&amp;#39;
[4/280] No download step for &amp;#39;mcuboot_subimage&amp;#39;
[5/280] No update step for &amp;#39;mcuboot_subimage&amp;#39;
[6/280] No patch step for &amp;#39;mcuboot_subimage&amp;#39;
[7/280] No configure step for &amp;#39;mcuboot_subimage&amp;#39;
[7/280] Performing build step for &amp;#39;mcuboot_subimage&amp;#39;
[1/190] Preparing syscall dependency handling

[2/190] Generating include/generated/version.h
-- Zephyr version: 3.2.99 (/mnt/hdd/nordic/v2.2.0/zephyr), build: v3.2.99-ncs1
[3/190] Generating misc/generated/syscalls_subdirs.trigger
[4/190] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[5/190] Generating include/generated/driver-validation.h
[6/190] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[7/190] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[8/190] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
[9/190] Generating include/generated/offsets.h
[10/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[11/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[12/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[13/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[14/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[15/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[16/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[17/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[18/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[19/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[20/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[21/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[22/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[23/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[24/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[25/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[26/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[27/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[28/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/multi_heap.c.obj
[29/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[30/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_nano.c.obj
[31/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[32/190] Generating zephyr/autogen-pubkey.c
[33/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[34/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/reboot.c.obj
[35/190] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[36/190] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[37/190] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_enabled_instances.c.obj
[38/190] Building ASM object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/common/soc_nrf_common.S.obj
[39/190] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj
[40/190] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[41/190] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/storage/flash_map/flash_map.c.obj
[42/190] Building C object CMakeFiles/app.dir/main.c.obj
[43/190] Building C object CMakeFiles/app.dir/os.c.obj
[44/190] Building C object CMakeFiles/app.dir/flash_map_extended.c.obj
[45/190] Building C object CMakeFiles/app.dir/keys.c.obj
[46/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/fault_injection_hardening.c.obj
[47/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/image_validate.c.obj
[48/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/tlv.c.obj
[49/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/encrypted.c.obj
[50/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/image_rsa.c.obj
[51/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/image_ec256.c.obj
[52/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/image_ed25519.c.obj
[53/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/bootutil_misc.c.obj
[54/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/ext/nrf/cc310_glue.c.obj
[55/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/loader.c.obj
[56/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/swap_misc.c.obj
[57/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/swap_scratch.c.obj
[58/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/ext/mbedtls-asn1/src/asn1parse.c.obj
[59/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/ext/mbedtls-asn1/src/platform_util.c.obj
[60/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/swap_move.c.obj
[61/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/caps.c.obj
[62/190] Building C object CMakeFiles/app.dir/zephyr/autogen-pubkey.c.obj
[63/190] Building C object CMakeFiles/app.dir/nrf_cleanup.c.obj
[64/190] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/storage/flash_map/flash_map_layout.c.obj
[65/190] Building C object zephyr/CMakeFiles/zephyr.dir/mnt/hdd/nordic/v2.2.0/nrf/subsys/partition_manager/flash_map_partition_manager.c.obj
[66/190] Building C object zephyr/CMakeFiles/zephyr.dir/mnt/hdd/nordic/v2.2.0/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_abort_zephyr.c.obj
[67/190] Building C object zephyr/CMakeFiles/zephyr.dir/mnt/hdd/nordic/v2.2.0/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_no_mutex_zephyr.c.obj
[68/190] Building C object zephyr/soc/arm/common/cortex_m/CMakeFiles/soc__arm__common__cortex_m.dir/arm_mpu_regions.c.obj
[69/190] Building C object modules/nrf/lib/fatal_error/CMakeFiles/..__nrf__lib__fatal_error.dir/fatal_error.c.obj
[70/190] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj
[71/190] Building C object zephyr/arch/common/CMakeFiles/isr_tables.dir/isr_tables.c.obj
[72/190] Generating linker_zephyr_pre0.cmd
[73/190] Generating linker_zephyr_pre1.cmd
[74/190] Linking C static library app/libapp.a
[75/190] Building C object zephyr/arch/common/CMakeFiles/arch__common.dir/sw_isr_common.c.obj
[76/190] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/fatal.c.obj
[77/190] Linking C static library zephyr/libzephyr.a
[78/190] Linking C static library zephyr/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a
[79/190] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi.c.obj
[80/190] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/irq_manage.c.obj
[81/190] Linking C static library zephyr/arch/common/libisr_tables.a
[82/190] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/prep_c.c.obj
[83/190] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi_on_reset.S.obj
[84/190] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap.c.obj
[85/190] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/thread.c.obj
[86/190] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj
[87/190] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/isr_wrapper.S.obj
[88/190] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/exc_exit.S.obj
[89/190] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault.c.obj
[90/190] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault_s.S.obj
[91/190] Linking C static library zephyr/arch/common/libarch__common.a
[92/190] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fpu.c.obj
[93/190] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/irq_init.c.obj
[94/190] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/reset.S.obj
[95/190] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/scb.c.obj
[96/190] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/thread_abort.c.obj
[97/190] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/vector_table.S.obj
[98/190] Linking C static library zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a
[99/190] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj
[100/190] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_mpu.c.obj
[101/190] Building C object zephyr/soc/arm/nordic_nrf/nrf52/CMakeFiles/soc__arm__nordic_nrf__nrf52.dir/soc.c.obj
[102/190] Building C object zephyr/drivers/clock_control/CMakeFiles/drivers__clock_control.dir/clock_control_nrf.c.obj
[103/190] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/uart_console.c.obj
[104/190] Building C object zephyr/drivers/gpio/CMakeFiles/drivers__gpio.dir/gpio_nrfx.c.obj
[105/190] Building C object zephyr/drivers/flash/CMakeFiles/drivers__flash.dir/soc_flash_nrf.c.obj
[106/190] Linking C static library zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a
[107/190] Building C object zephyr/drivers/flash/CMakeFiles/drivers__flash.dir/flash_page_layout.c.obj
[108/190] Building C object zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uarte.c.obj
[109/190] Generating ../../../include/generated/libc/minimal/strerror_table.h
[110/190] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[111/190] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/nrf_rtc_timer.c.obj
[112/190] Building C object zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj
[113/190] Linking C static library zephyr/drivers/clock_control/libdrivers__clock_control.a
[114/190] Linking C static library zephyr/drivers/console/libdrivers__console.a
[115/190] Linking C static library zephyr/drivers/flash/libdrivers__flash.a
[116/190] Linking C static library zephyr/drivers/serial/libdrivers__serial.a
[117/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/atoi.c.obj
[118/190] Linking C static library zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a
[119/190] Linking C static library zephyr/soc/arm/nordic_nrf/nrf52/libsoc__arm__nordic_nrf__nrf52.a
[120/190] Linking C static library zephyr/drivers/gpio/libdrivers__gpio.a
[121/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/abort.c.obj
[122/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtol.c.obj
[123/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoul.c.obj
[124/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoll.c.obj
[125/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoull.c.obj
[126/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/malloc.c.obj
[127/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/bsearch.c.obj
[128/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/exit.c.obj
[129/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/qsort.c.obj
[130/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strerror.c.obj
[131/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strncasecmp.c.obj
[132/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strstr.c.obj
[133/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/string.c.obj
[134/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strspn.c.obj
[135/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/stdout_console.c.obj
[136/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/sprintf.c.obj
[137/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/fprintf.c.obj
[138/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/math/sqrtf.c.obj
[139/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/math/sqrt.c.obj
[140/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/time/gmtime.c.obj
[141/190] Linking C static library zephyr/drivers/timer/libdrivers__timer.a
[142/190] Building C object zephyr/drivers/pinctrl/CMakeFiles/drivers__pinctrl.dir/common.c.obj
[143/190] Building C object zephyr/drivers/pinctrl/CMakeFiles/drivers__pinctrl.dir/pinctrl_nrf.c.obj
[144/190] Building C object modules/nrf/lib/fprotect/CMakeFiles/..__nrf__lib__fprotect.dir/fprotect_acl.c.obj
[145/190] Linking C static library modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a
[146/190] Building C object modules/mcuboot/boot/bootutil/zephyr/CMakeFiles/mcuboot_util.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c.obj
[147/190] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/mnt/hdd/nordic/v2.2.0/modules/hal/nordic/nrfx/mdk/system_nrf52840.c.obj
[148/190] Building C object modules/nrf/drivers/hw_cc310/CMakeFiles/..__nrf__drivers__hw_cc310.dir/hw_cc310.c.obj
[149/190] Linking C static library zephyr/lib/libc/minimal/liblib__libc__minimal.a
[150/190] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/mnt/hdd/nordic/v2.2.0/modules/hal/nordic/nrfx/helpers/nrfx_flag32_allocator.c.obj
[151/190] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/nrfx_glue.c.obj
[152/190] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/mnt/hdd/nordic/v2.2.0/modules/hal/nordic/nrfx/drivers/src/nrfx_clock.c.obj
[153/190] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/mnt/hdd/nordic/v2.2.0/modules/hal/nordic/nrfx/drivers/src/nrfx_gpiote.c.obj
[154/190] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/mnt/hdd/nordic/v2.2.0/modules/hal/nordic/nrfx/drivers/src/nrfx_nvmc.c.obj
[155/190] Linking C static library zephyr/drivers/pinctrl/libdrivers__pinctrl.a
[156/190] Linking C static library modules/nrf/lib/fprotect/lib..__nrf__lib__fprotect.a
[157/190] Linking C static library modules/mcuboot/boot/bootutil/zephyr/libmcuboot_util.a
[158/190] Linking C static library modules/nrf/drivers/hw_cc310/lib..__nrf__drivers__hw_cc310.a
[159/190] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/mnt/hdd/nordic/v2.2.0/modules/hal/nordic/nrfx/drivers/src/nrfx_ppi.c.obj
[160/190] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/mnt/hdd/nordic/v2.2.0/modules/hal/nordic/nrfx/drivers/src/nrfx_wdt.c.obj
[161/190] Building C object modules/segger/CMakeFiles/modules__segger.dir/mnt/hdd/nordic/v2.2.0/modules/debug/segger/SEGGER/SEGGER_RTT.c.obj
[162/190] Building C object modules/segger/CMakeFiles/modules__segger.dir/SEGGER_RTT_zephyr.c.obj
[163/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj
[164/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
[165/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
[166/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
[167/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj
[168/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
[169/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj
[170/190] Linking C static library modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a
[171/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mem_slab.c.obj
[172/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread.c.obj
[173/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/version.c.obj
[174/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/xip.c.obj
[175/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timeout.c.obj
[176/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timer.c.obj
[177/190] Linking C static library modules/segger/libmodules__segger.a
[178/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mempool.c.obj
[179/190] Linking C static library zephyr/kernel/libkernel.a
[180/190] Linking C executable zephyr/zephyr_pre0.elf

[181/190] Generating dev_handles.c
[182/190] Building C object zephyr/CMakeFiles/zephyr_pre1.dir/misc/empty_file.c.obj
[183/190] Building C object zephyr/CMakeFiles/zephyr_pre1.dir/dev_handles.c.obj
[184/190] Linking C executable zephyr/zephyr_pre1.elf

[185/190] Generating linker.cmd
[186/190] Generating isr_tables.c, isrList.bin
[187/190] Building C object zephyr/CMakeFiles/zephyr_final.dir/misc/empty_file.c.obj
[188/190] Building C object zephyr/CMakeFiles/zephyr_final.dir/dev_handles.c.obj
[189/190] Building C object zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj
[190/190] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       33692 B        48 KB     68.55%
             RAM:       17792 B       256 KB      6.79%
        IDT_LIST:          0 GB         2 KB      0.00%
[259/280] Linking C executable zephyr/zephyr_pre0.elf

[263/280] Linking C executable zephyr/zephyr_pre1.elf

[264/280] Generating linker.cmd
[266/280] No install step for &amp;#39;mcuboot_subimage&amp;#39;
[267/280] Completed &amp;#39;mcuboot_subimage&amp;#39;
[268/280] Generating isr_tables.c, isrList.bin
[269/280] Building C object zephyr/CMakeFiles/zephyr_final.dir/misc/empty_file.c.obj
[270/280] Building C object zephyr/CMakeFiles/zephyr_final.dir/dev_handles.c.obj
[271/280] Building C object zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj
[272/280] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:      206888 B     495104 B     41.79%
             RAM:       43516 B       256 KB     16.60%
        IDT_LIST:          0 GB         2 KB      0.00%
[273/280] Generating zephyr/mcuboot_primary.hex
[274/280] Generating zephyr/mcuboot_primary_app.hex
[275/280] Generating ../../zephyr/app_update.bin
sign the payload
[276/280] Generating ../../zephyr/dfu_application.zip
[277/280] Generating ../../zephyr/app_signed.hex
sign the payload
[278/280] Generating ../../zephyr/app_test_update.hex
sign the payload
[279/280] Generating ../../zephyr/app_moved_test_update.hex
[280/280] Generating zephyr/merged.hex
 *  Terminal will be reused by tasks, press any key to close it.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;screenshot of the&amp;nbsp;flash result.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:360px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/4/Screenshot-from-2023_2D00_03_2D00_03-10_2D00_39_2D00_55.png" /&gt;&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;log of the flash result.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; *  Executing task: nRF Connect: Build: peripheral_lbs_DFU_support_OTA/build (active) 

Building peripheral_lbs_DFU_support_OTA
west build --build-dir /mnt/hdd/nordic/code/peripheral_lbs_DFU_support_OTA/build /mnt/hdd/nordic/code/peripheral_lbs_DFU_support_OTA

[0/4] Performing build step for &amp;#39;mcuboot_subimage&amp;#39;
ninja: no work to do.
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: nRF Connect: Flash: peripheral_lbs_DFU_support_OTA/build (active) 

Flashing build to nRF52840-DK
west flash -d /mnt/hdd/nordic/code/peripheral_lbs_DFU_support_OTA/build --skip-rebuild -r nrfjprog --dev-id 683159654 --erase

-- west flash: using runner nrfjprog
-- runners.nrfjprog: mass erase requested
-- runners.nrfjprog: Flashing file: /mnt/hdd/nordic/code/peripheral_lbs_DFU_support_OTA/build/zephyr/merged.hex
[ #################### ]   0.282s | Erase file - Done erasing                                                          
[ #################### ]   2.954s | Program file - Done programming                                                    
[ #################### ]   2.897s | Verify file - Done verifying                                                       
Enabling pin reset.
Applying pin reset.
-- runners.nrfjprog: Board with serial number 683159654 flashed successfully.
 *  Terminal will be reused by tasks, press any key to close it.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Next is the log of the whole process.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nRF_5F00_Logger_5F00_2023_2D00_03_2D00_03_5F00_10_5F00_36_5F00_47.txt"&gt;devzone.nordicsemi.com/.../nRF_5F00_Logger_5F00_2023_2D00_03_2D00_03_5F00_10_5F00_36_5F00_47.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/minicom_5F00_vendor_5F00_nrf52840dk_5F00_dfu_5F00_ble_5F00_2023_2D00_03_2D00_03.log"&gt;devzone.nordicsemi.com/.../minicom_5F00_vendor_5F00_nrf52840dk_5F00_dfu_5F00_ble_5F00_2023_2D00_03_2D00_03.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is it possible that my version of nRF52840DK is too old?&lt;/p&gt;
&lt;p&gt;My nRF52840DK version is &lt;strong&gt;V0.9.0&lt;/strong&gt;, and its picture is as follows:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:360px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/4/IMG_5F00_4281.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kevin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS v2.2.0] - Device Firmware Update (DFU) via OTA using BLE</title><link>https://devzone.nordicsemi.com/thread/413072?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2023 14:56:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09b03283-8993-484a-9fb5-8f93a3d5a846</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The project you shared does not contain a Cmake file in it. Could you please try with the file I shared and see whether the same is happening?&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;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS v2.2.0] - Device Firmware Update (DFU) via OTA using BLE</title><link>https://devzone.nordicsemi.com/thread/412682?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2023 09:32:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d018f83-9276-4c87-9a79-fe82846a42d6</guid><dc:creator>Kevin Lin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Well... maybe there is something wrong with my code. But I followed all the procedures in the guide, even the sample code.&amp;nbsp;Other than that, I didn&amp;#39;t add or modify anything, except adding a test log to the test image.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure if I use the secondary slots for &lt;span&gt;external storage&lt;/span&gt;.&amp;nbsp;As mentioned above, I followed all the steps in the guide and didn&amp;#39;t change anything except the test logs. Or maybe I missed somewhere.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In addition, I also suspect that another possible place is the device tree setting. The DTS of nRF52840DK in NCS v.2.2.0 is here:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/fcaa60a99fa9d5256078ed28557856ec3709cfa9/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts#L254" rel="noopener noreferrer" target="_blank"&gt;nrf52840dk_nrf52840.dts&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The screenshot below shows the result of my following your advice.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nRF_5F00_Logger_5F00_2023_2D00_03_2D00_01_5F00_14_5F00_46_5F00_33.txt"&gt;devzone.nordicsemi.com/.../nRF_5F00_Logger_5F00_2023_2D00_03_2D00_01_5F00_14_5F00_46_5F00_33.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/minicom_5F00_android_5F00_nrf52840dk_5F00_dfu_5F00_ble_5F00_2023_2D00_03_2D00_01.log"&gt;devzone.nordicsemi.com/.../minicom_5F00_android_5F00_nrf52840dk_5F00_dfu_5F00_ble_5F00_2023_2D00_03_2D00_01.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1.&lt;/strong&gt; First, &amp;quot;&lt;strong&gt;READ&lt;/strong&gt;&amp;quot; the image on the Advanced&amp;nbsp;screen after connecting to the nRF52840DK.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:300px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x600/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20230301_2D00_144806.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2.&lt;/strong&gt;&amp;nbsp;In &amp;quot;&lt;strong&gt;Firmware Upload&lt;/strong&gt;&amp;quot;&amp;nbsp;section, upload a image named &amp;quot;&lt;strong&gt;app_update.bin&lt;/strong&gt;&amp;quot; and choose &amp;quot;&lt;strong&gt;Application Core&lt;/strong&gt;&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:300px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x600/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20230301_2D00_144830.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3.&lt;/strong&gt;&lt;span&gt;&amp;nbsp;The upload process.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:300px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x600/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20230301_2D00_144904.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;4.&lt;/strong&gt;&amp;nbsp;The &lt;strong&gt;State&lt;/strong&gt;&amp;nbsp;will show &amp;quot;&lt;strong&gt;UPLOAD COMPLETE&lt;/strong&gt;&amp;quot; after the process is completed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:300px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x600/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20230301_2D00_144927.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;5.&lt;/strong&gt;&amp;nbsp;&amp;quot;&lt;strong&gt;READ&lt;/strong&gt;&amp;quot; the image again. You will see there are two images in the nRF52840DK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:300px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x600/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20230301_2D00_144943.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;6.&lt;/strong&gt;&amp;nbsp;The result after clicking &amp;quot;&lt;strong&gt;CONFIRM&lt;/strong&gt;&amp;quot; option. It will display &amp;quot;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;Invalid value (3)&lt;/strong&gt;&lt;/span&gt;&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:300px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x600/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20230301_2D00_144951.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;7.&lt;/strong&gt;&amp;nbsp;Next, &amp;quot;&lt;strong&gt;TEST&lt;/strong&gt;&amp;quot; the new image after &amp;quot;&lt;strong&gt;READ&lt;/strong&gt;&amp;quot; the images again.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:300px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x600/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20230301_2D00_145113.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;8.&lt;/strong&gt;&amp;nbsp;Send a &amp;quot;&lt;strong&gt;RESET&lt;/strong&gt;&amp;quot; command.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:300px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x600/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20230301_2D00_145137.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;9.&lt;/strong&gt;&amp;nbsp;After reset the nRF52840DK, the current image will change to the new image.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:300px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x600/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20230301_2D00_145204.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;10.&lt;/strong&gt;&amp;nbsp;If you send a &amp;quot;&lt;strong&gt;RESET&lt;/strong&gt;&amp;quot; command again, you will see the current image is reversed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:300px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x600/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20230301_2D00_145246.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;The following results show what we tried using &lt;strong&gt;Device manager&lt;/strong&gt; on iOS.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1.&lt;/strong&gt;&amp;nbsp;&lt;span&gt;First, &amp;quot;&lt;/span&gt;&lt;strong&gt;READ&lt;/strong&gt;&lt;span&gt;&amp;quot; the image on the Advanced&amp;nbsp;screen after connecting to the nRF52840DK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:360px;max-width:166px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/332x720/__key/communityserver-discussions-components-files/4/IMG_5F00_4254.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;2.&lt;/strong&gt;&amp;nbsp;In &lt;strong&gt;IMAGE UPGRADE&lt;/strong&gt;&amp;nbsp;section, choose a image named &amp;quot;&lt;strong&gt;dfu_application.zip&lt;/strong&gt;&amp;quot; to upgrade.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:360px;max-width:166px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/332x720/__key/communityserver-discussions-components-files/4/IMG_5F00_4256.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;3.&lt;/strong&gt;&amp;nbsp;Choose &amp;quot;&lt;strong&gt;Confirm Only&lt;/strong&gt;&amp;quot; option.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:360px;max-width:166px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/332x720/__key/communityserver-discussions-components-files/4/IMG_5F00_4257.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;4.&lt;/strong&gt;&amp;nbsp;Then it will display &amp;quot;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;Remote error: In Value (3)&lt;/strong&gt;&lt;/span&gt;&amp;quot; on the&amp;nbsp;&lt;strong&gt;State&lt;/strong&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:360px;max-width:166px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/332x720/__key/communityserver-discussions-components-files/4/IMG_5F00_4258.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;5.&lt;/strong&gt;&amp;nbsp;&amp;quot;&lt;strong&gt;READ&lt;/strong&gt;&amp;quot; the image and there will be two images in the nRF52840DK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:360px;max-width:166px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/332x720/__key/communityserver-discussions-components-files/4/IMG_5F00_4259.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;6.&lt;/strong&gt;&amp;nbsp;Next, use &amp;quot;&lt;strong&gt;Test And Confirm&lt;/strong&gt;&amp;quot; option to test.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;img style="max-height:360px;max-width:166px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/332x720/__key/communityserver-discussions-components-files/4/IMG_5F00_4260.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;7.&lt;/strong&gt;&amp;nbsp;After upgrading the image, it will reset the nRF52840DK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:360px;max-width:166px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/332x720/__key/communityserver-discussions-components-files/4/IMG_5F00_4261.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;8.&lt;/strong&gt;&amp;nbsp;Confirm the new image.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:360px;max-width:166px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/332x720/__key/communityserver-discussions-components-files/4/IMG_5F00_4262.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;9.&lt;/strong&gt; The result is the same as &amp;quot;&lt;strong&gt;Confirm Only&lt;/strong&gt;&amp;quot; option because the new image cannot be confirmed successfully.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:360px;max-width:166px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/332x720/__key/communityserver-discussions-components-files/4/IMG_5F00_4263.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;10.&lt;/strong&gt;&amp;nbsp;&amp;quot;&lt;strong&gt;READ&lt;/strong&gt;&amp;quot; the images again. The nRF52840DK boots from the new image.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:360px;max-width:166px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/332x720/__key/communityserver-discussions-components-files/4/IMG_5F00_4264.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;11.&lt;/strong&gt;&amp;nbsp;&amp;quot;&lt;strong&gt;RESET&lt;/strong&gt;&amp;quot; the nRF52840DK to check if it will boot from the new image next time.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:360px;max-width:166px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/332x720/__key/communityserver-discussions-components-files/4/IMG_5F00_4265.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;12.&lt;/strong&gt; The current image has been inverted to the original image.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:360px;max-width:166px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/332x720/__key/communityserver-discussions-components-files/4/IMG_5F00_4266.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;span&gt;The following results show what we tried using&amp;nbsp;&lt;/span&gt;&lt;strong&gt;nRF Connect&lt;/strong&gt;&lt;span&gt;&amp;nbsp;on iOS.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nRF_5F00_Connect_5F00_IOS_5F00_2023_2D00_03_2D00_01.txt"&gt;devzone.nordicsemi.com/.../nRF_5F00_Connect_5F00_IOS_5F00_2023_2D00_03_2D00_01.txt&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;1.&lt;/strong&gt;&amp;nbsp;Connect to the nRF52840DK in &lt;strong&gt;nRF Connect&lt;/strong&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:360px;max-width:166px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/332x720/__key/communityserver-discussions-components-files/4/IMG_5F00_4268.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;2.&lt;/strong&gt;&amp;nbsp;The infrmation of the nRF52840DK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:360px;max-width:166px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/332x720/__key/communityserver-discussions-components-files/4/IMG_5F00_4269.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;3.&lt;/strong&gt;&amp;nbsp;Read the image using &amp;quot;&lt;strong&gt;List&lt;/strong&gt;&amp;quot; option.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:360px;max-width:166px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/332x720/__key/communityserver-discussions-components-files/4/IMG_5F00_4272.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;4.&lt;/strong&gt;&amp;nbsp;In DFU seciton, Select a image name &amp;quot;&lt;strong&gt;dfu_application.zip&lt;/strong&gt;&amp;quot; to upgrade.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:360px;max-width:166px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/332x720/__key/communityserver-discussions-components-files/4/IMG_5F00_4270.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;5.&lt;/strong&gt;&amp;nbsp;The&amp;nbsp;additional information in DFU section.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:360px;max-width:166px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/332x720/__key/communityserver-discussions-components-files/4/IMG_5F00_4271.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;6.&lt;/strong&gt;&amp;nbsp;The upgrade process.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:360px;max-width:166px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/332x720/__key/communityserver-discussions-components-files/4/IMG_5F00_4273.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;7.&lt;/strong&gt;&amp;nbsp;There will be an error window pop up after the process is completed. It displayed &amp;quot;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;Remote error: In Value (3)&lt;/strong&gt;&lt;/span&gt;&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:360px;max-width:166px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/332x720/__key/communityserver-discussions-components-files/4/IMG_5F00_4276.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please feel free to let me know if you need anything else.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks again for your help.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kevin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS v2.2.0] - Device Firmware Update (DFU) via OTA using BLE</title><link>https://devzone.nordicsemi.com/thread/412628?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2023 03:05:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65f9e1c9-b446-4a86-87f3-ad20ad2d2dfb</guid><dc:creator>Kevin Lin</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Abhijith,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here is my project.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_dfu_5F00_peripheral_5F00_lbs.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_dfu_5F00_peripheral_5F00_lbs.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please feel free to let me know if you need anything else.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks again for your help.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kevin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS v2.2.0] - Device Firmware Update (DFU) via OTA using BLE</title><link>https://devzone.nordicsemi.com/thread/412067?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2023 21:43:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f09f7b80-6ec5-42e2-bafb-8032b4fc1d04</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Hi, I had a talk with a firmware developer familiar with MCU manager.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;First of all we confirm that dfu works on our side. We used NCS 2.2. That may indicate an issue in your code out setup.&lt;/p&gt;
&lt;p&gt;Are you using external storage for the secondary slots?&lt;/p&gt;
&lt;p&gt;After you read the image state on Image 4 above, could you then click Confirm button instead of trying upgrade with Test &amp;amp; Confirm? On the Advanced screen you can upload the image and then select Confirm manually. Did you try that?&lt;/p&gt;
&lt;p&gt;Did you also try using nRF Connect Device Manager on iOS?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS v2.2.0] - Device Firmware Update (DFU) via OTA using BLE</title><link>https://devzone.nordicsemi.com/thread/411959?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2023 12:36:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d99ac11a-9d0c-42aa-bc23-e3fce4667927</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I was just trying the OTA DFU with NCS v2.2.0 and it&amp;#39;s working fine on my side. I am attaching the project file may be you can give a try with this file. Could you also share the whole project so that I can go through and will try to reproduce this here. I checked with device Manager App version1.5.2&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/peripheral_5F00_lbs_5F00_DFU_5F00_support_5F00_OTA.zip"&gt;devzone.nordicsemi.com/.../peripheral_5F00_lbs_5F00_DFU_5F00_support_5F00_OTA.zip&lt;/a&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;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS v2.2.0] - Device Firmware Update (DFU) via OTA using BLE</title><link>https://devzone.nordicsemi.com/thread/411820?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2023 05:13:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c08e660-a9a2-444d-8bdd-6f00552cab34</guid><dc:creator>Kevin Lin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sure, we also tried&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-connect-for-mobile"&gt;nRF connect Mobile App&lt;/a&gt;. The result seems to be the same as nRF Connect Device Manager. We also recorded the same two logs as above, please refer to below.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nRF_5F00_Connect_5F00_Log_5F00_2023_2D00_02_2D00_24_5F00_12_5F00_42_5F00_42.txt"&gt;devzone.nordicsemi.com/.../nRF_5F00_Connect_5F00_Log_5F00_2023_2D00_02_2D00_24_5F00_12_5F00_42_5F00_42.txt&lt;/a&gt;&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/minicom_5F00_nrfconnect_5F00_nrf52840dk_5F00_dfu_5F00_ble_5F00_2023_2D00_02_2D00_24.log"&gt;devzone.nordicsemi.com/.../minicom_5F00_nrfconnect_5F00_nrf52840dk_5F00_dfu_5F00_ble_5F00_2023_2D00_02_2D00_24.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here is the process we did.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1.&lt;/strong&gt;&amp;nbsp;Scan results on &lt;strong&gt;nRF Connect&lt;/strong&gt;. you can see the&amp;nbsp;&lt;strong&gt;Nordic_LBS&lt;/strong&gt; device.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:300px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x600/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20230224_2D00_123744.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2.&lt;/strong&gt;&lt;span&gt;&amp;nbsp;Connect to&amp;nbsp;the&amp;nbsp;&lt;strong&gt;Nordic_LBS&lt;/strong&gt; device. the result as follows.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:300px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x600/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20230224_2D00_123756.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3.&lt;/strong&gt;&lt;span&gt;&amp;nbsp;Click &amp;quot;&lt;strong&gt;DFU&lt;/strong&gt;&amp;quot; icon&amp;nbsp;in the upper right corner and choose &amp;quot;&lt;strong&gt;Confirm only&lt;/strong&gt;&amp;quot; option to update.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:300px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x600/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20230224_2D00_123803.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;4.&lt;/strong&gt;&lt;span&gt;&amp;nbsp;This is the result after the &amp;quot;&lt;strong&gt;Confirm only&lt;/strong&gt;&amp;quot; process is completed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:300px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x600/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20230224_2D00_123926.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;5.&lt;/strong&gt;&lt;span&gt;&amp;nbsp;Then use &amp;quot;&lt;strong&gt;Test and Confirm&lt;/strong&gt;&amp;quot; option to try again.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:300px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x600/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20230224_2D00_124051.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;6.&lt;/strong&gt;&lt;span&gt;&amp;nbsp;This is the result after the &amp;quot;&lt;strong&gt;Test and Confirm&lt;/strong&gt;&amp;quot; process is completed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:300px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x600/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20230224_2D00_123952.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;7.&lt;/strong&gt;&lt;span&gt;&amp;nbsp;Finally, execute the &amp;quot;&lt;strong&gt;nrfjprog -r&lt;/strong&gt;&amp;quot; command to test if the board will boot from the new image.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:300px;max-width:480px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x600/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20230224_2D00_124213.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kevin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS v2.2.0] - Device Firmware Update (DFU) via OTA using BLE</title><link>https://devzone.nordicsemi.com/thread/411807?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2023 02:15:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05c16558-a6d1-432f-911c-30a53123848e</guid><dc:creator>Kevin Lin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your prompt reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you mean that the problem is that the value of &lt;strong&gt;CONFIG_IMG_MGMT_UPDATABLE_IMAGE_NUMBER&lt;/strong&gt; in the configuration is set incorrectly?&lt;/p&gt;
&lt;p&gt;Is my understanding correct? If yes, its default value in &lt;strong&gt;.config&lt;/strong&gt;&amp;nbsp;was as follows:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_IMG_MGMT_UPDATABLE_IMAGE_NUMBER=1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then I added its new value in &lt;strong&gt;prj.conf&lt;/strong&gt;&amp;nbsp;for testing, as follows:&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_IMG_MGMT_UPDATABLE_IMAGE_NUMBER=2&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I also list the &lt;strong&gt;prj.conf&lt;/strong&gt; settings based on guidelines.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2018 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
CONFIG_NCS_SAMPLES_DEFAULTS=y

CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DEVICE_NAME=&amp;quot;Nordic_LBS&amp;quot;

# Enable the LBS service
CONFIG_BT_LBS=y
CONFIG_BT_LBS_POLL_BUTTON=y
CONFIG_DK_LIBRARY=y

# CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048


# DFU configuration

# Enable mcumgr.
CONFIG_MCUMGR=y

# Enable most core commands.
CONFIG_MCUMGR_CMD_IMG_MGMT=y
CONFIG_MCUMGR_CMD_OS_MGMT=y

# Ensure an MCUboot-compatible binary is generated.
CONFIG_BOOTLOADER_MCUBOOT=y

# Allow for large Bluetooth data packets.
CONFIG_BT_L2CAP_TX_MTU=252
CONFIG_BT_BUF_ACL_RX_SIZE=256

# Enable the Bluetooth (unauthenticated) and shell mcumgr transports.
CONFIG_MCUMGR_SMP_BT=y
CONFIG_MCUMGR_SMP_BT_AUTHEN=n

# Some command handlers require a large stack.
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096

CONFIG_IMG_MGMT_UPDATABLE_IMAGE_NUMBER=2
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But I was getting a failure when building the example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; *  Executing task: nRF Connect: Build [pristine]: ble_dfu_peripheral_lbs/build (active) 

Building ble_dfu_peripheral_lbs
west build --build-dir /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs --pristine --board nrf52840dk_nrf52840 -- -DNCS_TOOLCHAIN_VERSION:STRING=&amp;quot;NONE&amp;quot; -DBOARD_ROOT:STRING=&amp;quot;/mnt/hdd/nordic/code/ble_dfu_peripheral_lbs;/mnt/hdd/nordic/code/smp_svr;/mnt/hdd/nordic/code/vasco;/mnt/hdd/nordic/code_v2.0.0/smp_svr&amp;quot; -DCONF_FILE:STRING=&amp;quot;/mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/prj.conf&amp;quot;

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs
-- Found Python3: /mnt/hdd/nordic/toolchains/v2.2.0/usr/local/bin/python3.8 (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter 
-- Cache files will be written to: /home/kevin/.cache/zephyr
-- Zephyr version: 3.2.99 (/mnt/hdd/nordic/v2.2.0/zephyr)
-- Found west (found suitable version &amp;quot;0.14.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
CMake Warning at /mnt/hdd/nordic/v2.2.0/zephyr/cmake/modules/boards.cmake:88 (message):
  BOARD_ROOT element without a &amp;#39;boards&amp;#39; subdirectory:

  /mnt/hdd/nordic/code_v2.0.0/smp_svr

  Hints:

    - if your board directory is &amp;#39;/foo/bar/boards/&amp;lt;ARCH&amp;gt;/my_board&amp;#39; then add &amp;#39;/foo/bar&amp;#39; to BOARD_ROOT, not the entire board directory
    - if in doubt, use absolute paths
Call Stack (most recent call first):
  /mnt/hdd/nordic/v2.2.0/zephyr/cmake/modules/zephyr_default.cmake:108 (include)
  /mnt/hdd/nordic/v2.2.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /mnt/hdd/nordic/v2.2.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:8 (find_package)


-- Board: nrf52840dk_nrf52840
-- Found host-tools: zephyr 0.15.1 (/mnt/hdd/nordic/toolchains/v2.2.0/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.15.1 (/mnt/hdd/nordic/toolchains/v2.2.0/opt/zephyr-sdk)
-- Found Dtc: /mnt/hdd/nordic/toolchains/v2.2.0/usr/bin/dtc (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;) 
-- Found BOARD.dts: /mnt/hdd/nordic/v2.2.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
-- Generated zephyr.dts: /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/zephyr/dts.cmake
Parsing /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/Kconfig
Loaded configuration &amp;#39;/mnt/hdd/nordic/v2.2.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig&amp;#39;
Merged configuration &amp;#39;/mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/prj.conf&amp;#39;
Configuration saved to &amp;#39;/mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;/mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/zephyr/include/generated/autoconf.h&amp;#39;
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: /mnt/hdd/nordic/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Found Python3: /mnt/hdd/nordic/toolchains/v2.2.0/usr/local/bin/python3.8 (found version &amp;quot;3.8.2&amp;quot;) found components: Interpreter 

=== child image mcuboot -  begin ===
loading initial cache file /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/mcuboot/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/zephyr
-- Found Python3: /mnt/hdd/nordic/toolchains/v2.2.0/usr/local/bin/python3.8 (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter 
-- Cache files will be written to: /home/kevin/.cache/zephyr
-- Zephyr version: 3.2.99 (/mnt/hdd/nordic/v2.2.0/zephyr)
-- Found west (found suitable version &amp;quot;0.14.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: nrf52840dk_nrf52840
-- Found host-tools: zephyr 0.15.1 (/mnt/hdd/nordic/toolchains/v2.2.0/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.15.1 (/mnt/hdd/nordic/toolchains/v2.2.0/opt/zephyr-sdk)
-- Found Dtc: /mnt/hdd/nordic/toolchains/v2.2.0/usr/bin/dtc (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;) 
-- Found BOARD.dts: /mnt/hdd/nordic/v2.2.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
-- Found devicetree overlay: /mnt/hdd/nordic/v2.2.0/nrf/modules/mcuboot/usb.overlay
-- Found devicetree overlay: /mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/zephyr/dts.overlay
-- Generated zephyr.dts: /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/mcuboot/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/mcuboot/zephyr/dts.cmake
Parsing /mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration &amp;#39;/mnt/hdd/nordic/v2.2.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig&amp;#39;
Merged configuration &amp;#39;/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/zephyr/prj.conf&amp;#39;
Merged configuration &amp;#39;/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/zephyr/boards/nrf52840dk_nrf52840.conf&amp;#39;
Merged configuration &amp;#39;/mnt/hdd/nordic/v2.2.0/nrf/subsys/partition_manager/partition_manager_enabled.conf&amp;#39;
Merged configuration &amp;#39;/mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf&amp;#39;
Configuration saved to &amp;#39;/mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/mcuboot/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;/mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/mcuboot/zephyr/include/generated/autoconf.h&amp;#39;
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: /mnt/hdd/nordic/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Warning at /mnt/hdd/nordic/v2.2.0/nrf/lib/flash_patch/CMakeLists.txt:8 (message):
  

        ----------------------------------------------------------
        --- WARNING: To maintain the integrity of secure boot, ---
        --- enable CONFIG_DISABLE_FLASH_PATCH in production.   ---
        ----------------------------------------------------------


MCUBoot bootloader key file: /mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/root-ec-p256.pem
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/mcuboot
=== child image mcuboot -  end ===

CMake Warning at /mnt/hdd/nordic/v2.2.0/nrf/modules/mcuboot/CMakeLists.txt:286 (message):
  

          ---------------------------------------------------------
          --- WARNING: Using default MCUBoot key, it should not ---
          --- be used for production.                           ---
          ---------------------------------------------------------
          



CMake Warning at /mnt/hdd/nordic/v2.2.0/zephyr/CMakeLists.txt:1833 (message):
  __ASSERT() statements are globally ENABLED


-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build
-- west build: building application
[1/280] Preparing syscall dependency handling

[2/280] Generating include/generated/version.h
-- Zephyr version: 3.2.99 (/mnt/hdd/nordic/v2.2.0/zephyr), build: v3.2.99-ncs1
[3/280] Creating directories for &amp;#39;mcuboot_subimage&amp;#39;
[4/280] No download step for &amp;#39;mcuboot_subimage&amp;#39;
[5/280] No update step for &amp;#39;mcuboot_subimage&amp;#39;
[6/280] No patch step for &amp;#39;mcuboot_subimage&amp;#39;
[7/280] No configure step for &amp;#39;mcuboot_subimage&amp;#39;
[7/280] Performing build step for &amp;#39;mcuboot_subimage&amp;#39;
[1/190] Preparing syscall dependency handling

[2/190] Generating include/generated/version.h
-- Zephyr version: 3.2.99 (/mnt/hdd/nordic/v2.2.0/zephyr), build: v3.2.99-ncs1
[3/190] Generating misc/generated/syscalls_subdirs.trigger
[4/190] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[5/190] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[6/190] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[7/190] Generating include/generated/driver-validation.h
[8/190] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
[9/190] Generating include/generated/offsets.h
[10/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[11/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[12/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[13/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[14/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[15/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[16/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[17/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[18/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[19/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[20/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[21/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[22/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[23/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[24/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[25/190] Generating zephyr/autogen-pubkey.c
[26/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[27/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[28/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[29/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/multi_heap.c.obj
[30/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[31/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_nano.c.obj
[32/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[33/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[34/190] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/reboot.c.obj
[35/190] Building C object CMakeFiles/app.dir/main.c.obj
[36/190] Building C object CMakeFiles/app.dir/os.c.obj
[37/190] Building C object CMakeFiles/app.dir/flash_map_extended.c.obj
[38/190] Building C object CMakeFiles/app.dir/keys.c.obj
[39/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/fault_injection_hardening.c.obj
[40/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/tlv.c.obj
[41/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/image_validate.c.obj
[42/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/encrypted.c.obj
[43/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/image_rsa.c.obj
[44/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/image_ed25519.c.obj
[45/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/image_ec256.c.obj
[46/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/bootutil_misc.c.obj
[47/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/ext/nrf/cc310_glue.c.obj
[48/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/loader.c.obj
[49/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/swap_misc.c.obj
[50/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/ext/mbedtls-asn1/src/asn1parse.c.obj
[51/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/swap_scratch.c.obj
[52/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/swap_move.c.obj
[53/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/caps.c.obj
[54/190] Building C object CMakeFiles/app.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/ext/mbedtls-asn1/src/platform_util.c.obj
[55/190] Building C object CMakeFiles/app.dir/zephyr/autogen-pubkey.c.obj
[56/190] Building C object CMakeFiles/app.dir/nrf_cleanup.c.obj
[57/190] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[58/190] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[59/190] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_enabled_instances.c.obj
[60/190] Building ASM object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/common/soc_nrf_common.S.obj
[61/190] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj
[62/190] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[63/190] Building C object zephyr/CMakeFiles/zephyr.dir/mnt/hdd/nordic/v2.2.0/nrf/subsys/partition_manager/flash_map_partition_manager.c.obj
[64/190] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/storage/flash_map/flash_map.c.obj
[65/190] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/storage/flash_map/flash_map_layout.c.obj
[66/190] Linking C static library app/libapp.a
[67/190] Building C object zephyr/CMakeFiles/zephyr.dir/mnt/hdd/nordic/v2.2.0/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_abort_zephyr.c.obj
[68/190] Building C object zephyr/CMakeFiles/zephyr.dir/mnt/hdd/nordic/v2.2.0/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_no_mutex_zephyr.c.obj
[69/190] Building C object zephyr/soc/arm/common/cortex_m/CMakeFiles/soc__arm__common__cortex_m.dir/arm_mpu_regions.c.obj
[70/190] Generating linker_zephyr_pre1.cmd
[71/190] Building C object modules/nrf/lib/fatal_error/CMakeFiles/..__nrf__lib__fatal_error.dir/fatal_error.c.obj
[72/190] Building C object zephyr/arch/common/CMakeFiles/isr_tables.dir/isr_tables.c.obj
[73/190] Building C object zephyr/arch/common/CMakeFiles/arch__common.dir/sw_isr_common.c.obj
[74/190] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj
[75/190] Generating linker_zephyr_pre0.cmd
[76/190] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/fatal.c.obj
[77/190] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi.c.obj
[78/190] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/irq_manage.c.obj
[79/190] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi_on_reset.S.obj
[80/190] Linking C static library zephyr/libzephyr.a
[81/190] Linking C static library zephyr/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a
[82/190] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/prep_c.c.obj
[83/190] Linking C static library zephyr/arch/common/libisr_tables.a
[84/190] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap.c.obj
[85/190] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/thread.c.obj
[86/190] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj
[87/190] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/isr_wrapper.S.obj
[88/190] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/exc_exit.S.obj
[89/190] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault.c.obj
[90/190] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault_s.S.obj
[91/190] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fpu.c.obj
[92/190] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/irq_init.c.obj
[93/190] Linking C static library zephyr/arch/common/libarch__common.a
[94/190] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/reset.S.obj
[95/190] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/scb.c.obj
[96/190] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/thread_abort.c.obj
[97/190] Linking C static library zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a
[98/190] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/vector_table.S.obj
[99/190] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj
[100/190] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_mpu.c.obj
[101/190] Building C object zephyr/soc/arm/nordic_nrf/nrf52/CMakeFiles/soc__arm__nordic_nrf__nrf52.dir/soc.c.obj
[102/190] Building C object zephyr/drivers/clock_control/CMakeFiles/drivers__clock_control.dir/clock_control_nrf.c.obj
[103/190] Generating ../../../include/generated/libc/minimal/strerror_table.h
[104/190] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/uart_console.c.obj
[105/190] Building C object zephyr/drivers/gpio/CMakeFiles/drivers__gpio.dir/gpio_nrfx.c.obj
[106/190] Building C object zephyr/drivers/flash/CMakeFiles/drivers__flash.dir/soc_flash_nrf.c.obj
[107/190] Building C object zephyr/drivers/flash/CMakeFiles/drivers__flash.dir/flash_page_layout.c.obj
[108/190] Linking C static library zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a
[109/190] Building C object zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uarte.c.obj
[110/190] Building C object zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj
[111/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/atoi.c.obj
[112/190] Linking C static library zephyr/soc/arm/nordic_nrf/nrf52/libsoc__arm__nordic_nrf__nrf52.a
[113/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/abort.c.obj
[114/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtol.c.obj
[115/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoul.c.obj
[116/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoll.c.obj
[117/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoull.c.obj
[118/190] Linking C static library zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a
[119/190] Linking C static library zephyr/drivers/clock_control/libdrivers__clock_control.a
[120/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/malloc.c.obj
[121/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/bsearch.c.obj
[122/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/exit.c.obj
[123/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/qsort.c.obj
[124/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strerror.c.obj
[125/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strncasecmp.c.obj
[126/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strstr.c.obj
[127/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/string.c.obj
[128/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strspn.c.obj
[129/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/stdout_console.c.obj
[130/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/sprintf.c.obj
[131/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/fprintf.c.obj
[132/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/math/sqrtf.c.obj
[133/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/math/sqrt.c.obj
[134/190] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/time/gmtime.c.obj
[135/190] Linking C static library zephyr/drivers/console/libdrivers__console.a
[136/190] Linking C static library zephyr/drivers/gpio/libdrivers__gpio.a
[137/190] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[138/190] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/nrf_rtc_timer.c.obj
[139/190] Building C object zephyr/drivers/pinctrl/CMakeFiles/drivers__pinctrl.dir/common.c.obj
[140/190] Linking C static library zephyr/drivers/flash/libdrivers__flash.a
[141/190] Linking C static library zephyr/drivers/serial/libdrivers__serial.a
[142/190] Building C object zephyr/drivers/pinctrl/CMakeFiles/drivers__pinctrl.dir/pinctrl_nrf.c.obj
[143/190] Building C object modules/nrf/lib/fprotect/CMakeFiles/..__nrf__lib__fprotect.dir/fprotect_acl.c.obj
[144/190] Building C object modules/nrf/drivers/hw_cc310/CMakeFiles/..__nrf__drivers__hw_cc310.dir/hw_cc310.c.obj
[145/190] Linking C static library zephyr/lib/libc/minimal/liblib__libc__minimal.a
[146/190] Linking C static library modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a
[147/190] Building C object modules/mcuboot/boot/bootutil/zephyr/CMakeFiles/mcuboot_util.dir/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c.obj
[148/190] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/mnt/hdd/nordic/v2.2.0/modules/hal/nordic/nrfx/mdk/system_nrf52840.c.obj
[149/190] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/nrfx_glue.c.obj
[150/190] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/mnt/hdd/nordic/v2.2.0/modules/hal/nordic/nrfx/helpers/nrfx_flag32_allocator.c.obj
[151/190] Linking C static library zephyr/drivers/pinctrl/libdrivers__pinctrl.a
[152/190] Linking C static library modules/nrf/lib/fprotect/lib..__nrf__lib__fprotect.a
[153/190] Linking C static library modules/nrf/drivers/hw_cc310/lib..__nrf__drivers__hw_cc310.a
[154/190] Linking C static library zephyr/drivers/timer/libdrivers__timer.a
[155/190] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/mnt/hdd/nordic/v2.2.0/modules/hal/nordic/nrfx/drivers/src/nrfx_clock.c.obj
[156/190] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/mnt/hdd/nordic/v2.2.0/modules/hal/nordic/nrfx/drivers/src/nrfx_gpiote.c.obj
[157/190] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/mnt/hdd/nordic/v2.2.0/modules/hal/nordic/nrfx/drivers/src/nrfx_nvmc.c.obj
[158/190] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/mnt/hdd/nordic/v2.2.0/modules/hal/nordic/nrfx/drivers/src/nrfx_ppi.c.obj
[159/190] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/mnt/hdd/nordic/v2.2.0/modules/hal/nordic/nrfx/drivers/src/nrfx_wdt.c.obj
[160/190] Building C object modules/segger/CMakeFiles/modules__segger.dir/mnt/hdd/nordic/v2.2.0/modules/debug/segger/SEGGER/SEGGER_RTT.c.obj
[161/190] Linking C static library modules/mcuboot/boot/bootutil/zephyr/libmcuboot_util.a
[162/190] Building C object modules/segger/CMakeFiles/modules__segger.dir/SEGGER_RTT_zephyr.c.obj
[163/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj
[164/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
[165/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
[166/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
[167/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj
[168/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
[169/190] Linking C static library modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a
[170/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj
[171/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mem_slab.c.obj
[172/190] Linking C static library modules/segger/libmodules__segger.a
[173/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread.c.obj
[174/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/version.c.obj
[175/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/xip.c.obj
[176/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timeout.c.obj
[177/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timer.c.obj
[178/190] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mempool.c.obj
[179/190] Linking C static library zephyr/kernel/libkernel.a
[180/190] Linking C executable zephyr/zephyr_pre0.elf

[181/190] Generating dev_handles.c
[182/190] Building C object zephyr/CMakeFiles/zephyr_pre1.dir/misc/empty_file.c.obj
[183/190] Building C object zephyr/CMakeFiles/zephyr_pre1.dir/dev_handles.c.obj
[184/190] Linking C executable zephyr/zephyr_pre1.elf

[185/190] Generating linker.cmd
[186/190] Generating isr_tables.c, isrList.bin
[187/190] Building C object zephyr/CMakeFiles/zephyr_final.dir/misc/empty_file.c.obj
[188/190] Building C object zephyr/CMakeFiles/zephyr_final.dir/dev_handles.c.obj
[189/190] Building C object zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj
[190/190] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       33692 B        48 KB     68.55%
             RAM:       17792 B       256 KB      6.79%
        IDT_LIST:          0 GB         2 KB      0.00%
[183/280] Building C object zephyr/subsys/mgmt/mcumgr/CMakeFiles/subsys__mgmt__mcumgr.dir/lib/cmd/img_mgmt/src/img_mgmt_priv.c.obj
FAILED: zephyr/subsys/mgmt/mcumgr/CMakeFiles/subsys__mgmt__mcumgr.dir/lib/cmd/img_mgmt/src/img_mgmt_priv.c.obj 
ccache /mnt/hdd/nordic/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DKERNEL -DNRF52840_XXAA -DUSE_PARTITION_MANAGER=1 -DZCBOR_ASSERTS -D__PROGRAM_START -D__ZEPHYR__=1 -I/mnt/hdd/nordic/v2.2.0/nrf/drivers/mpsl/clock_control -I/mnt/hdd/nordic/v2.2.0/zephyr/include -Izephyr/include/generated -I/mnt/hdd/nordic/v2.2.0/zephyr/soc/arm/nordic_nrf/nrf52 -I/mnt/hdd/nordic/v2.2.0/zephyr/soc/arm/nordic_nrf/common/. -I/mnt/hdd/nordic/v2.2.0/zephyr/subsys/bluetooth -I/mnt/hdd/nordic/v2.2.0/zephyr/subsys/settings/include -I/mnt/hdd/nordic/v2.2.0/nrf/include -I/mnt/hdd/nordic/v2.2.0/nrf/lib/multithreading_lock/. -I/mnt/hdd/nordic/v2.2.0/nrf/subsys/bluetooth/controller/. -I/mnt/hdd/nordic/v2.2.0/zephyr/drivers/flash -I/mnt/hdd/nordic/v2.2.0/nrf/tests/include -I/mnt/hdd/nordic/v2.2.0/modules/hal/cmsis/CMSIS/Core/Include -I/mnt/hdd/nordic/v2.2.0/modules/hal/nordic/nrfx -I/mnt/hdd/nordic/v2.2.0/modules/hal/nordic/nrfx/drivers/include -I/mnt/hdd/nordic/v2.2.0/modules/hal/nordic/nrfx/mdk -I/mnt/hdd/nordic/v2.2.0/zephyr/modules/hal_nordic/nrfx/. -I/mnt/hdd/nordic/v2.2.0/modules/debug/segger/SEGGER -I/mnt/hdd/nordic/v2.2.0/modules/debug/segger/Config -I/mnt/hdd/nordic/v2.2.0/zephyr/modules/segger/. -I/mnt/hdd/nordic/v2.2.0/modules/crypto/tinycrypt/lib/include -I/mnt/hdd/nordic/v2.2.0/modules/lib/zcbor/include -I/mnt/hdd/nordic/v2.2.0/nrfxlib/mpsl/include -I/mnt/hdd/nordic/v2.2.0/nrfxlib/mpsl/include/protocol -I/mnt/hdd/nordic/v2.2.0/nrfxlib/softdevice_controller/include -I/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/zephyr/.. -I/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/zephyr/../include -I/mnt/hdd/nordic/v2.2.0/bootloader/mcuboot/boot/bootutil/zephyr/../../zephyr/include -I/mnt/hdd/nordic/v2.2.0/zephyr/subsys/mgmt/mcumgr/lib/mgmt/include -I/mnt/hdd/nordic/v2.2.0/zephyr/subsys/mgmt/mcumgr/lib/util/include -I/mnt/hdd/nordic/v2.2.0/zephyr/subsys/mgmt/mcumgr/lib/smp/include -I/mnt/hdd/nordic/v2.2.0/zephyr/subsys/mgmt/mcumgr/lib/cmd/img_mgmt/include -I/mnt/hdd/nordic/v2.2.0/zephyr/subsys/mgmt/mcumgr/lib/cmd/os_mgmt/include -isystem /mnt/hdd/nordic/v2.2.0/zephyr/lib/libc/minimal/include -isystem /mnt/hdd/nordic/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include -isystem /mnt/hdd/nordic/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include-fixed -isystem /mnt/hdd/nordic/v2.2.0/nrfxlib/crypto/nrf_cc310_platform/include -fno-strict-aliasing -Os -imacros /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=/mnt/hdd/nordic/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros /mnt/hdd/nordic/v2.2.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -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=/mnt/hdd/nordic/code/ble_dfu_peripheral_lbs=CMAKE_SOURCE_DIR -fmacro-prefix-map=/mnt/hdd/nordic/v2.2.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/mnt/hdd/nordic/v2.2.0=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT zephyr/subsys/mgmt/mcumgr/CMakeFiles/subsys__mgmt__mcumgr.dir/lib/cmd/img_mgmt/src/img_mgmt_priv.c.obj -MF zephyr/subsys/mgmt/mcumgr/CMakeFiles/subsys__mgmt__mcumgr.dir/lib/cmd/img_mgmt/src/img_mgmt_priv.c.obj.d -o zephyr/subsys/mgmt/mcumgr/CMakeFiles/subsys__mgmt__mcumgr.dir/lib/cmd/img_mgmt/src/img_mgmt_priv.c.obj -c /mnt/hdd/nordic/v2.2.0/zephyr/subsys/mgmt/mcumgr/lib/cmd/img_mgmt/src/img_mgmt_priv.c
In file included from /mnt/hdd/nordic/v2.2.0/zephyr/include/zephyr/toolchain.h:50,
                 from /mnt/hdd/nordic/v2.2.0/zephyr/lib/libc/minimal/include/string.h:13,
                 from /mnt/hdd/nordic/v2.2.0/zephyr/include/zephyr/sys/mpsc_packet.h:9,
                 from /mnt/hdd/nordic/v2.2.0/zephyr/include/zephyr/logging/log_msg.h:10,
                 from /mnt/hdd/nordic/v2.2.0/zephyr/include/zephyr/logging/log_core.h:9,
                 from /mnt/hdd/nordic/v2.2.0/zephyr/include/zephyr/logging/log.h:11,
                 from /mnt/hdd/nordic/v2.2.0/zephyr/subsys/mgmt/mcumgr/lib/cmd/img_mgmt/src/img_mgmt_priv.c:7:
/mnt/hdd/nordic/v2.2.0/zephyr/subsys/mgmt/mcumgr/lib/cmd/img_mgmt/src/img_mgmt_priv.c:29:1: error: static assertion failed: &amp;quot;Missing partitions?&amp;quot;
   29 | BUILD_ASSERT(CONFIG_IMG_MGMT_UPDATABLE_IMAGE_NUMBER == 1 ||
      | ^~~~~~~~~~~~
[191/280] Building C object modules/nrf/lib/dk_buttons_and_leds/CMakeFiles/..__nrf__lib__dk_buttons_and_leds.dir/dk_buttons_and_leds.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /mnt/hdd/nordic/toolchains/v2.2.0/usr/local/bin/cmake --build /mnt/hdd/nordic/code/ble_dfu_peripheral_lbs/build

 *  The terminal process terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;From the build log, it seems that the failure is caused by this reason:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/mnt/hdd/nordic/v2.2.0/zephyr/subsys/mgmt/mcumgr/lib/cmd/img_mgmt/src/img_mgmt_priv.c:29:1: error: static assertion failed: &amp;quot;Missing partitions?&amp;quot;
   29 | BUILD_ASSERT(CONFIG_IMG_MGMT_UPDATABLE_IMAGE_NUMBER == 1 ||
      | ^~~~~~~~~~~~&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Is it because the partition is not set, or other reasons? If yes, how do we set up partitions?&lt;/p&gt;
&lt;p&gt;By the way, we use &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-connect-for-vs-code" rel="noopener noreferrer" target="_blank"&gt;nRF Connect for VS Code&lt;/a&gt;&amp;nbsp;(Linux) for development.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks again for your help.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kevin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS v2.2.0] - Device Firmware Update (DFU) via OTA using BLE</title><link>https://devzone.nordicsemi.com/thread/411627?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 11:15:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf2bb8c9-9881-4efa-a7cf-94c71c67997d</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;I also asked fw guru to check if there are no issues on the mcumgr side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS v2.2.0] - Device Firmware Update (DFU) via OTA using BLE</title><link>https://devzone.nordicsemi.com/thread/411597?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 10:01:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:219b8530-4086-490e-87d7-d4ca59cac3da</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please go through the First response.&lt;/p&gt;
&lt;p&gt;Have you tried the same using the &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-connect-for-mobile"&gt;nRF connect Mobile App&lt;/a&gt;? Please give a try and let me know the result.&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;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NCS v2.2.0] - Device Firmware Update (DFU) via OTA using BLE</title><link>https://devzone.nordicsemi.com/thread/411325?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2023 11:13:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f40e560-2be0-4e6b-a679-b3bb4a921bf0</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I will go with you through the code of mcumgr subsystem from where you&amp;#39;re getting the error.&lt;/p&gt;
&lt;p&gt;First, have a look here: &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/0cd59b0c43aa0c9d6682066aca74ac05be094169/subsys/mgmt/mcumgr/grp/img_mgmt/src/img_mgmt.c#L585"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/0cd59b0c43aa0c9d6682066aca74ac05be094169/subsys/mgmt/mcumgr/grp/img_mgmt/src/img_mgmt.c#L585&lt;/a&gt;. This is where handlers for different commands are registered. The confirm or test commands are sent as Write to IMG_MGMT_ID_STATE command to Image group, that means we need to check &lt;em&gt;img_mgmt_state_write&lt;/em&gt; method.:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/0cd59b0c43aa0c9d6682066aca74ac05be094169/subsys/mgmt/mcumgr/grp/img_mgmt/src/img_mgmt_state.c#L274"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/0cd59b0c43aa0c9d6682066aca74ac05be094169/subsys/mgmt/mcumgr/grp/img_mgmt/src/img_mgmt_state.c#L274&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;We are looking for places where an error called &lt;em&gt;MGMT_ERR_EINVAL&lt;/em&gt; is returned as &lt;em&gt;rc&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;I assume the decoding here: &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/0cd59b0c43aa0c9d6682066aca74ac05be094169/subsys/mgmt/mcumgr/grp/img_mgmt/src/img_mgmt_state.c#L290"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/0cd59b0c43aa0c9d6682066aca74ac05be094169/subsys/mgmt/mcumgr/grp/img_mgmt/src/img_mgmt_state.c#L290&lt;/a&gt; works, as it is called both when you have &lt;em&gt;confirm=false&lt;/em&gt; and&lt;em&gt; confirm=true&lt;/em&gt;. The first case seems to be working properly. It sets the &lt;em&gt;pending&lt;/em&gt; flag to &lt;em&gt;true&lt;/em&gt;. After reset the device is swapping images and runs the new image, which is correct. This method fails when &lt;em&gt;confirm&lt;/em&gt; is &lt;em&gt;true&lt;/em&gt;, which means the error must come later.&lt;/p&gt;
&lt;p&gt;The hash sent is equal in both cases, so this also doesn&amp;#39;t end here: &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/0cd59b0c43aa0c9d6682066aca74ac05be094169/subsys/mgmt/mcumgr/grp/img_mgmt/src/img_mgmt_state.c#L305"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/0cd59b0c43aa0c9d6682066aca74ac05be094169/subsys/mgmt/mcumgr/grp/img_mgmt/src/img_mgmt_state.c#L305&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then, the next possible place is here: &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/0cd59b0c43aa0c9d6682066aca74ac05be094169/subsys/mgmt/mcumgr/grp/img_mgmt/src/img_mgmt_state.c#L315"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/0cd59b0c43aa0c9d6682066aca74ac05be094169/subsys/mgmt/mcumgr/grp/img_mgmt/src/img_mgmt_state.c#L315&lt;/a&gt; where the manager is looking for the image to be confirmed. This method is defined here: &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/0cd59b0c43aa0c9d6682066aca74ac05be094169/subsys/mgmt/mcumgr/grp/img_mgmt/src/img_mgmt.c#L233-L247"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/0cd59b0c43aa0c9d6682066aca74ac05be094169/subsys/mgmt/mcumgr/grp/img_mgmt/src/img_mgmt.c#L233-L247&lt;/a&gt; indicating that perhaps&amp;nbsp;CONFIG_IMG_MGMT_UPDATABLE_IMAGE_NUMBER isn&amp;#39;t set properly.&lt;/p&gt;
&lt;p&gt;Check this out:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_IMG_MGMT_UPDATABLE_IMAGE_NUMBER.html#std-kconfig-CONFIG_IMG_MGMT_UPDATABLE_IMAGE_NUMBER"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_IMG_MGMT_UPDATABLE_IMAGE_NUMBER.html#std-kconfig-CONFIG_IMG_MGMT_UPDATABLE_IMAGE_NUMBER&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;If that&amp;#39;s not the case, try going further that path. But I suspect that may be it. The next method is just returning the state of images, which is again called for test and confirm, so should work the same way.&lt;/p&gt;
&lt;p&gt;Hope that helped!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>