<?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>Change mac address quickly</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8858/change-mac-address-quickly</link><description>I&amp;#39;m trying to change the mac address of my nRF51822 chip using something like: 
 ble_gap_addr_t m_address_1;
m_address_1.addr_type = BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE;
m_address_1.addr ...
m_address_1.addr[5] = 8;
sd_ble_gap_address_set</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Oct 2015 09:56:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8858/change-mac-address-quickly" /><item><title>RE: Change mac address quickly</title><link>https://devzone.nordicsemi.com/thread/32572?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2015 09:56:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:473802b6-ff98-4925-b84a-6d770beae84b</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;As far as I can see you are only setting the mac address once before you enter a while forever loop that does nothing but print the value of the FICR register?&lt;/p&gt;
&lt;p&gt;And it also looks like you are only setting the first two bytes of the mac address as 0xAA. The rest of the bytes will then be random. Try for i&amp;lt;6 instead of i&amp;lt;2 to iterate through all 6 bytes of the mac address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change mac address quickly</title><link>https://devzone.nordicsemi.com/thread/32571?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2015 02:43:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f13d8e4-7fc6-41b9-a506-a06865d9a560</guid><dc:creator>Jacksonlv</dc:creator><description>&lt;p&gt;I use the code below but I got the mac address is different from I set .What&amp;#39;s more,I find  it is constant.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ble_gap_addr_t m_address_1;
m_address_1.addr_type = BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE;

for(uint8_t i = 0; i &amp;lt; 2; i++)
{
    m_address_1.addr[i] = 0xAAAAAAAA;
}

sd_ble_gap_address_set(BLE_GAP_ADDR_CYCLE_MODE_NONE, &amp;amp;m_address_1);

while(1)
{      
    for(uint8_t i = 0; i &amp;lt; 2; i++)
    {
        Serial.println(NRF_FICR-&amp;gt;DEVICEID[i]);
    }
    delay(1000);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change mac address quickly</title><link>https://devzone.nordicsemi.com/thread/32570?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2015 13:55:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76b41871-94f4-4866-8922-5ae9081b32a3</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t really see why that won&amp;#39;t work for you, but I made an example for you. It uses a timer to change the mac address at an interval of your own choosing. It seemed to work at least down to a 100ms. It is a quick and dirty example based on the ble template example in SDK 9.0.0. Just extract it to e.g. &amp;quot;&lt;em&gt;SDK_9.0.0_folder\examples\ble_peripheral&lt;/em&gt;&amp;quot; and hopefully it will compile out of the box.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/change_2D00_mac_2D00_address_2D00_quickly.zip"&gt;change-mac-address-quickly.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>