<?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>Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123969/bonding-randomly-loss-after-dfu</link><description>Hi there, I am using nrf connect sdk v2.6.0. I have noticed that after DFU update, I am seeing ble bonding lost randomly on firmware side. I did uncheck Erase Application Settings before DFU and I tried on both Device Manager app as well as nrf connect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Sep 2025 05:59:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123969/bonding-randomly-loss-after-dfu" /><item><title>RE: Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/thread/548431?ContentTypeID=1</link><pubDate>Thu, 11 Sep 2025 05:59:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78ff8231-e6c6-4950-b4ff-d249f1e696aa</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/amanda"&gt;Amanda Hsieh&lt;/a&gt;&amp;nbsp;When I disable partition manager, I get build errors as&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY needs the partition manager to be enabled. FYI I am storing dfu image in an external flash.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/thread/548411?ContentTypeID=1</link><pubDate>Wed, 10 Sep 2025 19:21:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:483339c1-9db9-4ee4-8026-f321e7e88ff4</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;You can try to disable it by setting&amp;nbsp;&lt;span&gt;CONFIG_PARTITION_MANAGER_ENABLED=n in the prj.conf (for v2.6.0);&amp;nbsp;SB_CONFIG_PARTITION_MANAGER=n in the sysbuild.conf (for v3.1.0).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/thread/548406?ContentTypeID=1</link><pubDate>Wed, 10 Sep 2025 17:17:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bce57325-031d-48aa-b029-9fd74b4a415c</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/amanda"&gt;Amanda Hsieh&lt;/a&gt;&amp;nbsp; , I just check and it is enabled&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/thread/548398?ContentTypeID=1</link><pubDate>Wed, 10 Sep 2025 16:51:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8586d9df-1ded-4c3e-a81a-f7e96a7c2e6a</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;You can check:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_PARTITION_MANAGER_ENABLED in the .config under&amp;nbsp;build/zephyr (for v2.6.0) /&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;SB_CONFIG_PARTITION_MANAGER in the .config under&amp;nbsp;build/zephyr (for sysbuild, v3.1.0)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/thread/548290?ContentTypeID=1</link><pubDate>Tue, 09 Sep 2025 21:00:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:632e815e-0754-4e7b-9027-df7dfcc2c33e</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;How I can confirm if partition manager is enabled? I have already attached pm_static.yml and dts file with flash partition defined in my first post.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/thread/548282?ContentTypeID=1</link><pubDate>Tue, 09 Sep 2025 17:59:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7235c17-afcb-4c45-be56-db30cfa61eab</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;&lt;span&gt;Could you&amp;nbsp;check if the Partition Manager is enabled for your application? In that case, the storage partitions might have been moved to a different location when they performed the DFU, making it appear as if they were erased.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/thread/548276?ContentTypeID=1</link><pubDate>Tue, 09 Sep 2025 16:40:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8558b739-8e3d-419e-91db-d93dea2a29fe</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/amanda"&gt;Amanda Hsieh&lt;/a&gt;&amp;nbsp; I am using exact same configuration apart from privacy disabled. Does this cause the bonding to loose after DFU? I don&amp;#39;t see anything special in overlay file&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/thread/548275?ContentTypeID=1</link><pubDate>Tue, 09 Sep 2025 16:29:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3852d2e-8f3d-491f-b6ef-dcd57486f217</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;The modifications is not only in the&amp;nbsp;&lt;span&gt;overlay and .conf file also in the code.&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you able to reproduce the issue with this&amp;nbsp;&lt;a href="https://github.com/NordicDeveloperAcademy/bt-fund/tree/main/l5/l5_e2_sol"&gt;https://github.com/NordicDeveloperAcademy/bt-fund/tree/main/l5/l5_e2_sol&lt;/a&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/thread/548269?ContentTypeID=1</link><pubDate>Tue, 09 Sep 2025 15:13:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69af1427-c7c2-4b19-a623-331764112b0f</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/amanda"&gt;Amanda Hsieh&lt;/a&gt;&amp;nbsp; &lt;a href="https://devzone.nordicsemi.com/members/thibaud"&gt;Thibaud&lt;/a&gt;&amp;nbsp;, I am calling&amp;nbsp;&lt;span&gt;settings_load upon power up. My question is how I can store ble bonding info to ble stack as currently it is automatically stored to stack when App (gateway) request it&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/thread/548267?ContentTypeID=1</link><pubDate>Tue, 09 Sep 2025 15:08:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1b56e8f-a59c-4f36-bb43-e9e08ab2108a</guid><dc:creator>Thibaud</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/amanda"&gt;Amanda Hsieh&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I already followed this lesson. I am calling settings_load() since it is reconnecting after a reset.&lt;/p&gt;
&lt;p&gt;Have you been able to reproduce the issue with the hid keyboard sample ? I&amp;#39;ve sent you overlay and .conf file to add in the build so you cand do DFU of this sample.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/thread/548263?ContentTypeID=1</link><pubDate>Tue, 09 Sep 2025 14:45:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07529e01-85d8-4d12-8e15-32d872d726c6</guid><dc:creator>Amanda Hsieh</dc:creator><description>[quote user="Thibaud"] I do understand but in my firmware I do not choose where I store boudings. It is just done when my pairing is completed but I am not calling any functions[/quote]
&lt;p&gt;Please refer to&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-5-bluetooth-le-security-fundamentals/topic/blefund-lesson-5-exercise-2/"&gt;https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-5-bluetooth-le-security-fundamentals/topic/blefund-lesson-5-exercise-2/&lt;/a&gt;&amp;nbsp;to enable&amp;nbsp;&lt;code&gt;CONFIG_BT_SETTINGS and&amp;nbsp;&lt;/code&gt;&lt;span&gt;call the API function&amp;nbsp;&lt;/span&gt;&lt;code&gt;settings_load()&lt;/code&gt;&lt;span&gt;&amp;nbsp;manually to be able to store the pairing keys and configuration persistently.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/thread/548262?ContentTypeID=1</link><pubDate>Tue, 09 Sep 2025 14:43:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bea1cdb6-09e9-46e6-a497-cc29101139bf</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;Yes. I&amp;nbsp;&lt;span&gt;&amp;nbsp;stil cannot reconnect after a DFU&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/thread/548261?ContentTypeID=1</link><pubDate>Tue, 09 Sep 2025 14:42:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a3a7a6a-56fe-43ce-a95f-6b25db5fbc5d</guid><dc:creator>Thibaud</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/moh"&gt;Moh&lt;/a&gt;&amp;nbsp;&amp;nbsp;so you stil cannot reconnect after a DFU ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/thread/548260?ContentTypeID=1</link><pubDate>Tue, 09 Sep 2025 14:39:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76fc3ca3-49f4-4268-9ecc-f623068a5c4d</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/thibaud"&gt;Thibaud&lt;/a&gt;&amp;nbsp;, its not quite a solution since storing the bonding info in nvs partition won&amp;#39;t help as I still need to store it to BLE stack. Issue is that when I update DFU, bonding info are lost from BLE stack. Keeping copy of last bonding won&amp;#39;t help as I still need to find a way to restore it in ble stack by reading the nvs partition upon power up and if bonding is lost in the stack, rewrite to it so that App side doesn&amp;#39;t complain.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/thread/548259?ContentTypeID=1</link><pubDate>Tue, 09 Sep 2025 14:36:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af6af5a6-dcc5-4ea2-8ed4-93b116c67665</guid><dc:creator>Thibaud</dc:creator><description>&lt;p&gt;HI &lt;a href="https://devzone.nordicsemi.com/members/moh"&gt;Moh&lt;/a&gt;&amp;nbsp; how did you managed to change the storation use for settings in your firmware ? I am personnaly not calling any function from settings library so I don&amp;#39;t know where I should change anything&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/thread/548258?ContentTypeID=1</link><pubDate>Tue, 09 Sep 2025 14:34:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b2ccd26-c1af-4ca2-8024-b45099b91b50</guid><dc:creator>Thibaud</dc:creator><description>&lt;p&gt;Hi I don&amp;#39;t know I am just trying to found a solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/thread/547938?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2025 13:53:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc9e5c5e-a9f5-47d9-8bd1-98bced5dc596</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Why would you want to use that config? It usually goes with the single bank setting, which is not supported by BLE DFU.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/thread/547867?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2025 08:01:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bb4759a-aed6-415a-a5fb-2552ce3dadec</guid><dc:creator>Thibaud</dc:creator><description>&lt;p&gt;HI&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/moh"&gt;Moh&lt;/a&gt;&amp;nbsp; I do understand but in my firmware I do not choose where I store boudings. It is just done when my pairing is completed but I am not calling any functions&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/thread/547866?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2025 07:58:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc280d6c-9ed1-47e5-8e66-2ae871032512</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/thibaud"&gt;Thibaud&lt;/a&gt;&amp;nbsp;just to clarify again, there are two dedicated partitions (one for app_storage and settings_storage). By default, bondings are stored in the&amp;nbsp;settings partition, but I was seeing issues where bondings would be lost after DFU, and this was happening randomly for me.&amp;nbsp;&lt;br /&gt;Then I&amp;nbsp;decided to update my firmware&amp;nbsp;to store bondings into the app-storage partition, and now I am not seeing any bonding lost issue&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/thread/547860?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2025 07:50:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fa2246b-b606-40ca-a96f-673126a3f036</guid><dc:creator>Thibaud</dc:creator><description>&lt;p&gt;HI &lt;a href="https://devzone.nordicsemi.com/members/amanda"&gt;Amanda Hsieh&lt;/a&gt;&amp;nbsp;do you think kconfig PM_SINGLE_IMAGE should be enable ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/thread/547856?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2025 07:35:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccc0a67c-8ad2-446d-9037-d490c2300aa7</guid><dc:creator>Thibaud</dc:creator><description>&lt;p&gt;How did you change that ? I don&amp;#39;t see any difference between the screen in this message :&amp;nbsp;&lt;/p&gt;
[quote userid="132438" url="~/f/nordic-q-a/123969/bonding-randomly-loss-after-dfu/547781"]Hi &lt;a href="https://devzone.nordicsemi.com/members/amanda" data-contentid="0652a26ea6694f6a81626699a1af8b9c" data-contenttypeid="e9ed411860ed4f2ba0265705b8793d05" class="ui-contentpeek internal-link view-user-profile"&gt;Amanda Hsieh&lt;/a&gt;&amp;nbsp; &lt;a href="https://devzone.nordicsemi.com/members/thibaud" data-contentid="8c32dd96f3e1423392bd6398f2e04e29" data-contenttypeid="e9ed411860ed4f2ba0265705b8793d05" class="ui-contentpeek internal-link view-user-profile"&gt;Thibaud&lt;/a&gt;&amp;nbsp; what I mean is that when I stored bonding info in&amp;nbsp;app_storage_partition instead of default location of&amp;nbsp;storage_partition, I don&amp;#39;t see bonding lost after DFU. I tried on latest SDK 3.1.0 and seems to be fine. &lt;br /&gt;Kind Regards, M[/quote]
&lt;p&gt;&amp;nbsp;and your initial overlay.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/thread/547854?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2025 07:32:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:502d2c24-418e-4ac7-9e72-13cf20c99cee</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;Yes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/thread/547853?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2025 07:31:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2633dcc2-0e65-4657-98e2-abf004b737f8</guid><dc:creator>Thibaud</dc:creator><description>&lt;p&gt;yes but you are stil using CONFIG_SETTINGS option in kconfig ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/thread/547852?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2025 07:30:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aac2d315-802d-4105-9349-039c0f167435</guid><dc:creator>Moh</dc:creator><description>&lt;p&gt;Correct. I am no longer using&amp;nbsp;&lt;span&gt;settings&amp;nbsp;partition&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding randomly loss after DFU</title><link>https://devzone.nordicsemi.com/thread/547851?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2025 07:28:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc43addf-0824-4514-8480-f29639f96de0</guid><dc:creator>Thibaud</dc:creator><description>&lt;p&gt;Hi Moh, you are no longer using settings feature ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>