<?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>New data is added to the settings partition after every reboot.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121280/new-data-is-added-to-the-settings-partition-after-every-reboot</link><description>Hello 
 I&amp;#39;m using the settings partition to store user configuration data. I know that the BLE stack also uses it — particularly for storing bonding information — but I don&amp;#39;t understand why new data keeps getting stored in the settings automatically after</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 May 2025 13:56:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121280/new-data-is-added-to-the-settings-partition-after-every-reboot" /><item><title>RE: New data is added to the settings partition after every reboot.</title><link>https://devzone.nordicsemi.com/thread/535157?ContentTypeID=1</link><pubDate>Tue, 13 May 2025 13:56:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89a3241a-f6bf-4df1-a99d-8145557af765</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you requier a dynamic name? If not, you would be better of disabling it and setting the name build time as is done in most Bluetooth samples. If you need a dynamic name, I&amp;nbsp;would check the existing name using &lt;code&gt;bt_get_name()&lt;/code&gt; and verify if it needs to be updated, before you call&amp;nbsp;&lt;code&gt;bt_set_name()&lt;/code&gt;. That way there is only a write when you actually need to update the name.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New data is added to the settings partition after every reboot.</title><link>https://devzone.nordicsemi.com/thread/534930?ContentTypeID=1</link><pubDate>Mon, 12 May 2025 14:22:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0769ee0-57b6-41a2-ae61-162ec6470c23</guid><dc:creator>Aurele</dc:creator><description>&lt;p&gt;Is it possible to avoid calling &lt;code data-start="249" data-end="264"&gt;&lt;strong&gt;bt_set_name&lt;/strong&gt;()&lt;/code&gt; to prevent the Bluetooth name from being stored again in the settings partition?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried to add the ble name directly in the advertising&amp;nbsp;data structure :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static const struct bt_data non_connectable_data[] = {
	BT_DATA_BYTES(BT_DATA_FLAGS, BT_LE_AD_NO_BREDR),
    BT_DATA(BT_DATA_NAME_COMPLETE, &amp;quot;FREEDOM&amp;quot;, 7),
	BT_DATA(BT_DATA_MANUFACTURER_DATA, complete_advertising_data, sizeof(complete_advertising_data)),
};

static const struct bt_data connectable_data[] = {
	BT_DATA_BYTES(BT_DATA_FLAGS, BT_LE_AD_GENERAL | BT_LE_AD_NO_BREDR),
    BT_DATA(BT_DATA_NAME_COMPLETE, &amp;quot;FREEDOM EXTENDED&amp;quot;, 16),
	BT_DATA(BT_DATA_MANUFACTURER_DATA, lite_advertising_data, sizeof(lite_advertising_data)),
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, &lt;strong&gt;&lt;code data-start="176" data-end="200"&gt;bt_le_ext_adv_set_data&lt;/code&gt;&lt;/strong&gt; still returns error -22 (invalid argument).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New data is added to the settings partition after every reboot.</title><link>https://devzone.nordicsemi.com/thread/534822?ContentTypeID=1</link><pubDate>Mon, 12 May 2025 08:26:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e85ec6f6-1c44-4bbe-b1ed-83535187bc33</guid><dc:creator>Aurele</dc:creator><description>&lt;p&gt;Hello Einar&lt;br /&gt;&lt;br /&gt;Indeed, I have&amp;nbsp;&lt;span&gt;CONFIG_BT_DEVICE_NAME_DYNAMIC=y and I&amp;#39;m calling&amp;nbsp;bt_set_name() twice at each reboot.&lt;br /&gt;&lt;br /&gt;Regards,&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New data is added to the settings partition after every reboot.</title><link>https://devzone.nordicsemi.com/thread/534481?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 13:28:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8a2005b-9bf1-4fc9-bc7b-727ee4dc5387</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Normally, device name is not written to settings. However, if you have&amp;nbsp;CONFIG_BT_DEVICE_NAME_DYNAMIC=y and call&amp;nbsp;bt_set_name() it is written. Is that what is happening here? This is also described in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/115746/how-to-advertise-a-dynamic-name-after-the-deprecation-of-bt_le_adv_conn_name/507576"&gt;this post&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>