<?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>BLE MAC address</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79262/ble-mac-address</link><description>Dear Team, Can we change MAC address of nRF 5340 pdk/dk development board or it is fixed?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 May 2023 08:13:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79262/ble-mac-address" /><item><title>RE: BLE MAC address</title><link>https://devzone.nordicsemi.com/thread/427411?ContentTypeID=1</link><pubDate>Thu, 25 May 2023 08:13:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58839fa9-9dc4-4276-82c8-7187a61b5971</guid><dc:creator>Shubham061</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1685002334788v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I have initialised it before bt_enable, but it shows the following error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE MAC address</title><link>https://devzone.nordicsemi.com/thread/328532?ContentTypeID=1</link><pubDate>Wed, 08 Sep 2021 09:05:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6802be0-0200-4744-9efb-0938b3603f8f</guid><dc:creator>Palmer Huang</dc:creator><description>&lt;p&gt;Hi，Einar&lt;/p&gt;
&lt;p&gt;Is there a way to update the mac address after enabling Bluetooth?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE MAC address</title><link>https://devzone.nordicsemi.com/thread/327950?ContentTypeID=1</link><pubDate>Fri, 03 Sep 2021 10:49:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7737e72-2968-442e-9466-1b910ab125e1</guid><dc:creator>Starin1</dc:creator><description>&lt;p&gt;Thanks it worked hust i forgot to put before BT enable&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE MAC address</title><link>https://devzone.nordicsemi.com/thread/327946?ContentTypeID=1</link><pubDate>Fri, 03 Sep 2021 10:39:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b382b6c9-7096-45dd-8576-789a47b7cfee</guid><dc:creator>Starin1</dc:creator><description>&lt;p&gt;Thanks,&lt;br /&gt;BUT it is not working, i am using &amp;quot;C:\User\ncs\v1.4.2\nrf\samples\bluetooth\peripheral_uart\src&amp;quot; code to advertise MAC address.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE MAC address</title><link>https://devzone.nordicsemi.com/thread/327931?ContentTypeID=1</link><pubDate>Fri, 03 Sep 2021 09:24:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc0dd7b6-7620-4566-b4e3-668e6a539685</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can set the BT address using &lt;code&gt;bt_id_create()&lt;/code&gt;. For instance, like this to set the address to DE:AD:BE:EF:BA:11:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;	int err;
	bt_addr_le_t addr;

	err = bt_addr_le_from_str(&amp;quot;DE:AD:BE:EF:BA:11&amp;quot;, &amp;quot;random&amp;quot;, &amp;amp;addr);
	if (err) {
		printk(&amp;quot;Invalid BT address (err %d)\n&amp;quot;, err);
	}

	err = bt_id_create(&amp;amp;addr, NULL);
	if (err &amp;lt; 0) {
		printk(&amp;quot;Creating new ID failed (err %d)\n&amp;quot;, err);
	}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Note that this must be done before enabling bluetooth.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>