<?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>Setting public BLE address on nRF5340 - NCS 2.4</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105235/setting-public-ble-address-on-nrf5340---ncs-2-4</link><description>I need to set the public BLE address for a BLE central role device using an nRF5340. 
 First attempted creating an additional bluetooth identity , but it appears this is only intended for peripheral role devices, as the API for scanning or creating new</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Aug 2024 17:58:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105235/setting-public-ble-address-on-nrf5340---ncs-2-4" /><item><title>RE: Setting public BLE address on nRF5340 - NCS 2.4</title><link>https://devzone.nordicsemi.com/thread/499113?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2024 17:58:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87bf4aa3-502f-496e-be12-6c79173acc50</guid><dc:creator>neo_here</dc:creator><description>&lt;p&gt;Got it thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting public BLE address on nRF5340 - NCS 2.4</title><link>https://devzone.nordicsemi.com/thread/498440?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 11:13:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30798890-00d7-429b-8877-c47bc1436923</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Should be enough to set it once, after startup. If you reset the device, you need to set it again. But if you only turn off/on advertising, it should not be needed to set it each time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting public BLE address on nRF5340 - NCS 2.4</title><link>https://devzone.nordicsemi.com/thread/498350?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 18:19:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:203c3e0e-5a0e-4cd1-9128-5fd17a5bf8ed</guid><dc:creator>neo_here</dc:creator><description>&lt;p&gt;Hi Sigurd,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I was wondering if the public address we write using this method is persistent. Do we need to write it every time before advertising or is the address stored in persistent storage?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting public BLE address on nRF5340 - NCS 2.4</title><link>https://devzone.nordicsemi.com/thread/453520?ContentTypeID=1</link><pubDate>Wed, 01 Nov 2023 13:40:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21f1a43c-6652-486c-ad31-bd6eb9347f9f</guid><dc:creator>Tyler Grunenwald</dc:creator><description>&lt;p&gt;These additions solved it. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting public BLE address on nRF5340 - NCS 2.4</title><link>https://devzone.nordicsemi.com/thread/453391?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2023 22:43:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a2ee503-a676-4ddb-84d7-fd0fb12ac414</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;did some testing on this, and it seem to work if&amp;nbsp;I call&amp;nbsp;&lt;span&gt;settings_load() between&amp;nbsp;set_bd_addr() and&amp;nbsp;start_advertising();&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Snippet:&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="ui-code" data-mode="text"&gt;set_bd_addr();

if (IS_ENABLED(CONFIG_SETTINGS)) {
    settings_load();
}

start_advertising();&lt;/pre&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;in prj.conf I added this:&lt;/div&gt;
&lt;div&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Enable bonding
CONFIG_BT_SETTINGS=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_NVS=y
CONFIG_SETTINGS=y&lt;/pre&gt;&lt;/div&gt;
&lt;div&gt;Would need to investigate this a bit more to understand why this is the case.&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>