<?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>MAC Address Read in BMD 300 nrf52 - DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33882/mac-address-read-in-bmd-300-nrf52---dk</link><description>Hi, 
 
 I am developing an application using BMaD 300 Eval board nrf52. As a first I want to display device information along with MAC address of BMD 300 I have, in advertising packet. But when I try to read the register UICR in BMD 300 documentation</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Jan 2020 00:06:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33882/mac-address-read-in-bmd-300-nrf52---dk" /><item><title>RE: MAC Address Read in BMD 300 nrf52 - DK</title><link>https://devzone.nordicsemi.com/thread/230749?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 00:06:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc5e44b1-28ce-466c-a148-c70c9f8c7503</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;The default BLE address is in the FICR, not UICR, There are two ways of reading this, direct or via the SD Device.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// MAC Address
// ===========
//
// Last 2 bits in 48-bit stream - top 2 bits in last byte of Device Address
// 00 Public
// 01 Random Static
// 10 Resolvable
// 11 Non-Resolvable
//
// Note that even though the address is &amp;quot;Random&amp;quot;, it is invariant and never changes
// for a specific Nordic device as the NRF_FICR-&amp;gt;DEVICEADDR registers are Read-Only
//
// formed from NRF_FICR-&amp;gt;DEVICEADDR[1] and NRF_FICR-&amp;gt;DEVICEADDR[0]
// eg: BLE 1:B6DB78952FCE (B0050E2F9578DBB6)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;or from the SoftDevice:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    // Get actual BLE address in case it is different from hardware register BLE address
    ble_gap_addr_t device_addr;  /**&amp;lt; 48-bit address, LSB format. */
    sd_ble_gap_addr_get(&amp;amp;device_addr);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Here is an example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;   snprintf(IPacket, sizeof(IPacket), &amp;quot;Id %08X%08X, Peer %u, Type %u, Addr %02X:%02X:%02X:%02X:%02X:%02X\r\n&amp;quot;,
            NRF_FICR-&amp;gt;DEVICEADDR[1], NRF_FICR-&amp;gt;DEVICEADDR[0],
            device_addr.addr_id_peer, device_addr.addr_type, device_addr.addr[0], device_addr.addr[1],
            device_addr.addr[2], device_addr.addr[3], device_addr.addr[4], device_addr.addr[5]);

Output:
Id 71959DCC72DCF09F, Peer 0, Type 1, Addr 9F:F0:DC:72:CC:DD&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MAC Address Read in BMD 300 nrf52 - DK</title><link>https://devzone.nordicsemi.com/thread/230744?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 21:45:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7d68c0f-ae57-4ee5-9f7e-2b1f836017c2</guid><dc:creator>ranton</dc:creator><description>&lt;p&gt;Anyone know where this document can be found today?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MAC Address Read in BMD 300 nrf52 - DK</title><link>https://devzone.nordicsemi.com/thread/131033?ContentTypeID=1</link><pubDate>Fri, 04 May 2018 13:30:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:731dd5dc-c4b6-4e2a-a88d-8527baf1b727</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have a look at the &lt;a href="https://rigado.zendesk.com/hc/en-us/articles/227027548-App-Note-MAC-Address-Provisioning" target="_blank" rel="noopener noreferrer"&gt;MAC address provisioning application note&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>