<?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>MCUBOOT and bonding</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110976/mcuboot-and-bonding</link><description>Hi, 
 We have some problems with Zephyr MCUBOOT when doing FOTA over BLE. 
 Our device has characteristics protected with LESC. 
 When device is bonded, the update fails in one of the last stages. Everything seems correct while doing FOTA. The image is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 May 2024 07:43:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110976/mcuboot-and-bonding" /><item><title>RE: MCUBOOT and bonding</title><link>https://devzone.nordicsemi.com/thread/482728?ContentTypeID=1</link><pubDate>Fri, 10 May 2024 07:43:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4ccc007-94a1-4948-8a61-e28cb0d719b4</guid><dc:creator>janR</dc:creator><description>&lt;p&gt;I found the issue:&lt;/p&gt;
&lt;p&gt;nRF Connect -&amp;gt; &amp;quot;Mcu Manager options&amp;quot; had &amp;quot;Erase application settings&amp;quot; enabled.&lt;/p&gt;
&lt;p&gt;When I disabled this setting, bond information is not erased on DFU update anymore.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks both of you for pointing me in the right direction.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards, Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT and bonding</title><link>https://devzone.nordicsemi.com/thread/482547?ContentTypeID=1</link><pubDate>Wed, 08 May 2024 13:44:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:566370a8-105b-4200-9f8e-2537684a00fc</guid><dc:creator>janR</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, it seems like the settings (where bond information are stored) is overwritten. I need to rebond after FOTA.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, the&amp;nbsp;memory report shows a reserved settings_storage area in the upper part of flash&amp;nbsp;(0x000F8000 - 0x000FFFFF).&lt;/p&gt;
&lt;p&gt;But is it still overwritten at DFU?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The memory report:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1715170186708v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;What I am doing to get the behaviour:&lt;/p&gt;
&lt;p&gt;- Build the modified lbs example&lt;/p&gt;
&lt;p&gt;- Erase flash on PCA10056&lt;/p&gt;
&lt;p&gt;- Flash it with the modified lbs example&lt;/p&gt;
&lt;p&gt;- Check debug output&lt;/p&gt;
&lt;p&gt;- Connect with the&amp;nbsp;&lt;span&gt;lbs example and access the Button characteristics, so pairing is&amp;nbsp;triggered&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- Pair and bond&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;- Do a little modification for the&amp;nbsp;&lt;span&gt;lbs example and copy it the tablet&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- Do FOTA DFU with nRF Connect from tablet&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- Verify that the modification is installed on PCA10056 (debug output)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If I now reset the board, the firmware is reverted back to old version, or if I try to access a characteristics, pairing is triggered (then bonding must be bonding deleted)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried to add a&amp;nbsp;pm_static.yml to the project root:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;app:
  address: 0xc200
  end_address: 0x82000
  region: flash_primary
  size: 0x75e00
mcuboot:
  address: 0x0
  end_address: 0xc000
  placement:
    before:
    - mcuboot_primary
  region: flash_primary
  size: 0xc000
mcuboot_pad:
  address: 0xc000
  end_address: 0xc200
  placement:
    align:
      start: 0x1000
    before:
    - mcuboot_primary_app
  region: flash_primary
  size: 0x200
mcuboot_primary:
  address: 0xc000
  end_address: 0x82000
  orig_span: &amp;amp;id001
  - mcuboot_pad
  - app
  region: flash_primary
  sharers: 0x1
  size: 0x76000
  span: *id001
mcuboot_primary_app:
  address: 0xc200
  end_address: 0x82000
  orig_span: &amp;amp;id002
  - app
  region: flash_primary
  size: 0x75e00
  span: *id002
mcuboot_secondary:
  address: 0x82000
  end_address: 0xf8000
  placement:
    after:
    - mcuboot_primary
    align:
      start: 0x1000
    align_next: 0x1000
  region: flash_primary
  share_size:
  - mcuboot_primary
  size: 0x76000
settings_storage:
  address: 0xf8000
  end_address: 0x100000
  region: flash_primary
  size: 0x8000
sram_primary:
  address: 0x20000000
  end_address: 0x20040000
  region: sram_primary
  size: 0x40000
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But that did not change anything. Memory report stays the same, bonding information is still overwritten, and firmware still reverts.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How do I prevent the overwrite of bonding information?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards, Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT and bonding</title><link>https://devzone.nordicsemi.com/thread/482511?ContentTypeID=1</link><pubDate>Wed, 08 May 2024 12:12:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecd5a663-c955-40fa-8045-6ffa51654244</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I agree with the comment you allready got. Could it be that the partition layout has changed? Note that the partition layout needs to stay constant when doign DFU in the field, so you need to use &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/scripts/partition_manager/partition_manager.html#configuring_static_partitions"&gt;static partitions&lt;/a&gt; to getting such problems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT and bonding</title><link>https://devzone.nordicsemi.com/thread/482386?ContentTypeID=1</link><pubDate>Tue, 07 May 2024 20:52:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:221ff3ed-1830-49dd-8b2e-66b669c3bd8a</guid><dc:creator>Jesse_Carpenter</dc:creator><description>&lt;p&gt;Hi, you may be overwriting the user space storage (or wherever you&amp;#39;re storing the bonding info). If you disable that, it should work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>