<?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>Undesired behaviour from mcuboot immediately after DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118852/undesired-behaviour-from-mcuboot-immediately-after-dfu</link><description>Hello, thanks for reading and happy holidays! 
 We are using an nrf5340dk, with zephyr and SDK 2.5.0. 
 We seem to have two undesired behaviors from MCUBoot immediately after performing an OTA DFU, and I was wondering if you have any suggestions? 
 Firstly</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Feb 2025 08:57:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118852/undesired-behaviour-from-mcuboot-immediately-after-dfu" /><item><title>RE: Undesired behaviour from mcuboot immediately after DFU</title><link>https://devzone.nordicsemi.com/thread/522790?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2025 08:57:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcff8d14-a667-4a76-925a-2ab853502a19</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;My suggestion is to try reading the flash area at 0xfc000 to 0xfe000 to check if it&amp;#39;s wiped out when you see the bond info has been lost.&amp;nbsp;&lt;br /&gt;If the bond info is still there, you may want to double check if the device&amp;#39;s BLE address is not changed after the DFU update. If it&amp;#39;s changed the phone won&amp;#39;t be able to recognize the device after DFU. However if the device use Resolvable Random Address then it&amp;#39;s harder to spot this. We would need to have a sniffer trace to see which exact side losing the bond information, the phone or the nRF53.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Undesired behaviour from mcuboot immediately after DFU</title><link>https://devzone.nordicsemi.com/thread/522736?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2025 18:50:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07ab84a1-583f-4e78-8c43-c25e1ae7140b</guid><dc:creator>i_4556</dc:creator><description>&lt;p&gt;Thank you for your reply.&lt;/p&gt;
[quote userid="2121" url="~/f/nordic-q-a/118852/undesired-behaviour-from-mcuboot-immediately-after-dfu/522644"]How did you do DFU ? Did you select Test and Confirm or Confirm Only. From my understanding Confirm only would make it faster as it doesn&amp;#39;t backup the original application hence save time.&amp;nbsp;&lt;br /&gt;Other than that I don&amp;#39;t see how&amp;nbsp;we&amp;nbsp;can make the process faster.&amp;nbsp;[/quote]
&lt;p&gt;Yes, we did test and confirm in the NRF Connect app. Ok, thats what I had assumed, I just wanted to check.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="2121" url="~/f/nordic-q-a/118852/undesired-behaviour-from-mcuboot-immediately-after-dfu/522644"]We would need to investigate this. Have you find a reliable way to reproduce this issue ? Do you external flash for DFU update or internal flash ? How is bond information stored ?[/quote]
&lt;p&gt;We use internal flash only, and bond information is all handled by zephyr. Unfortunately we havent found a reliable way to reproduce the issue. &lt;br /&gt;&lt;br /&gt;Our flash partition is also largely handled by zephyr, but we added a user storage partition through a PM_Static.yml file. I have included the output partition file in case that somehow helps you, and can provide anything else if needed.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;EMPTY_0:
  address: 0xf8000
  end_address: 0xfc000
  placement:
    after:
    - mcuboot_secondary
  region: flash_primary
  size: 0x4000
app:
  address: 0x10200
  end_address: 0x84000
  region: flash_primary
  size: 0x73e00
custom_nvs_storage:
  address: 0xfe000
  end_address: 0x100000
  region: flash_primary
  size: 0x2000
mcuboot:
  address: 0x0
  end_address: 0x10000
  placement:
    before:
    - mcuboot_primary
  region: flash_primary
  size: 0x10000
mcuboot_pad:
  address: 0x10000
  end_address: 0x10200
  placement:
    align:
      start: 0x4000
    before:
    - mcuboot_primary_app
  region: flash_primary
  size: 0x200
mcuboot_primary:
  address: 0x10000
  end_address: 0x84000
  orig_span: &amp;amp;id001
  - app
  - mcuboot_pad
  region: flash_primary
  sharers: 0x1
  size: 0x74000
  span: *id001
mcuboot_primary_app:
  address: 0x10200
  end_address: 0x84000
  orig_span: &amp;amp;id002
  - app
  region: flash_primary
  size: 0x73e00
  span: *id002
mcuboot_secondary:
  address: 0x84000
  end_address: 0xf8000
  placement:
    after:
    - mcuboot_primary
    align:
      start: 0x4000
  region: flash_primary
  share_size:
  - mcuboot_primary
  size: 0x74000
otp:
  address: 0xff8100
  end_address: 0xff83fc
  region: otp
  size: 0x2fc
rpmsg_nrf53_sram:
  address: 0x20070000
  end_address: 0x20080000
  placement:
    before:
    - end
  region: sram_primary
  size: 0x10000
settings_storage:
  address: 0xfc000
  end_address: 0xfe000
  placement:
    align:
      start: 0x4000
    before:
    - end
  region: flash_primary
  size: 0x2000
sram_primary:
  address: 0x20000000
  end_address: 0x20070000
  region: sram_primary
  size: 0x70000
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Undesired behaviour from mcuboot immediately after DFU</title><link>https://devzone.nordicsemi.com/thread/522644?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2025 12:33:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b33fafd4-e1b3-4844-8c31-85952be663da</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user=""]Firstly, if we have devices bonded before performing the OTA DFU, the bonds seem to be deleted during the update. Is there a way to preserve them? Even when Erase App Settings is turned off, sometimes the bond information is still deleted.[/quote]
&lt;p&gt;We would need to investigate this. Have you find a reliable way to reproduce this issue ? Do you external flash for DFU update or internal flash ? How is bond information stored ? Please provide the partition setting.&amp;nbsp;&lt;/p&gt;
[quote user=""]Secondly, is there a way we can speed up the DFU process, in particular the time from when the file transfer completes until the device reboots? We are using almost all the flash, so I have always assumed this time is just how long the swap takes, but if we could safely hurry it along that would be good.[/quote]
&lt;p&gt;How did you do DFU ? Did you select Test and Confirm or Confirm Only. From my understanding Confirm only would make it faster as it doesn&amp;#39;t backup the original application hence save time.&amp;nbsp;&lt;br /&gt;Other than that I don&amp;#39;t see how&amp;nbsp;we&amp;nbsp;can make the process faster.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>