<?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>Reading static MAC address on nRF52 series</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84871/reading-static-mac-address-on-nrf52-series</link><description>I am following this post regarding reading the static MAC address for the nRF52840: https://devzone.nordicsemi.com/f/nordic-q-a/68376/trying-to-extract-the-static-mac-address-using-ncs 
 However, I looked in hci_driver.c and the function is not available</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 18 Feb 2022 13:02:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84871/reading-static-mac-address-on-nrf52-series" /><item><title>RE: Reading static MAC address on nRF52 series</title><link>https://devzone.nordicsemi.com/thread/353851?ContentTypeID=1</link><pubDate>Fri, 18 Feb 2022 13:02:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5086dcaf-67b6-4630-97fb-9a045845a18b</guid><dc:creator>esisk</dc:creator><description>&lt;p&gt;Hey Hung,&lt;/p&gt;
&lt;p&gt;Something interesting I saw yesterday was that when I was working on my application for the 52820, the config variable enabled the compilation of the function as expected. But I found the opposite to be true when working on the 52840 application as mentioned in my original post. Using NCS v1.7.0 for both. Not a huge issue but wanted to make a note of it.&lt;/p&gt;
&lt;p&gt;Edit: Sorry Hung, I misread your first message. I read it as &amp;quot;is not available when Zephyr HCI Vendor-Specific Extensions is not used&amp;quot; instead of &amp;quot;is available.. when not used&amp;quot;. This makes sense then with what I&amp;#39;m seeing then.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading static MAC address on nRF52 series</title><link>https://devzone.nordicsemi.com/thread/353845?ContentTypeID=1</link><pubDate>Fri, 18 Feb 2022 12:57:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27eb7311-e31f-4d3f-b15a-baf779a2a221</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Ethan,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;From what i can find, It&amp;#39;s correct that the&amp;nbsp;&lt;span&gt;bt_read_static_addr() is available&amp;nbsp;when&amp;nbsp;Zephyr HCI Vendor-Specific Extensions is not used. When&amp;nbsp;&lt;em&gt;Zephyr HCI Vendor-Specific Extensions is used, the API to be used is&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/softdevice_controller/doc/api.html?highlight=sdc_hci_cmd_vs_zephyr_read_static_addresses#c.sdc_hci_cmd_vs_zephyr_read_static_addresses"&gt;sdc_hci_cmd_vs_zephyr_read_static_addresses&lt;/a&gt;() .&lt;/em&gt; You can have a look &lt;em&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/subsys/bluetooth/controller/hci_internal.c#L918"&gt;here.&lt;/a&gt;&amp;nbsp;I would assume when you set&amp;nbsp;CONFIG_BT_HCI_VS_EXT&amp;nbsp;=1 &lt;/em&gt;you need to follow suit, because there are other vendor specific modules not just Nordic.&amp;nbsp;&lt;em&gt;&lt;br /&gt;&lt;br /&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;em&gt;&lt;/em&gt;&lt;/span&gt;In addition, the default way of getting Bluetooth address is to use bt_id_get() as shown &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/bluetooth/bluetooth-dev.html#bluetooth-application-example"&gt;here.&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Of course you can implement your own function to read the FICR the same way that we did in the&amp;nbsp;&lt;span&gt;bt_read_static_addr()&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>