<?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>How to change the mac address when the system boots up?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2915/how-to-change-the-mac-address-when-the-system-boots-up</link><description>As said on the topic &amp;quot;GAP Address types&amp;quot;, the random static address can be changed when system boots up. I can&amp;#39;t find any content about how to make it. Could anyone offer any tips?
best regards!</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 May 2015 06:51:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2915/how-to-change-the-mac-address-when-the-system-boots-up" /><item><title>RE: How to change the mac address when the system boots up?</title><link>https://devzone.nordicsemi.com/thread/11087?ContentTypeID=1</link><pubDate>Fri, 22 May 2015 06:51:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c29ab2b-605d-4be0-b982-f9e6681ca476</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Sarah, You can place this code in the init, after ble_stack_init().&lt;/p&gt;
&lt;p&gt;Cheers,
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change the mac address when the system boots up?</title><link>https://devzone.nordicsemi.com/thread/11086?ContentTypeID=1</link><pubDate>Thu, 21 May 2015 21:49:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d064acb6-b97e-4b58-b998-5a86b96903ee</guid><dc:creator>Sarah</dc:creator><description>&lt;p&gt;Where would be a good place to include this code if we are using the sample beacon project? I currently cannot find where in this sample project, the function sd_ble_gap_address_set() is being called. I&amp;#39;m quite new to nRF programming, so I would appreciate if you could give some basic instructions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change the mac address when the system boots up?</title><link>https://devzone.nordicsemi.com/thread/11085?ContentTypeID=1</link><pubDate>Tue, 13 Jan 2015 19:00:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b33b93b-547c-4ed7-9754-1d9ef777b598</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;This will be stored in the softdevice&amp;#39;s RAM. This means that you will have to set the custom address, using the above sd_-call, on every boot up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change the mac address when the system boots up?</title><link>https://devzone.nordicsemi.com/thread/11084?ContentTypeID=1</link><pubDate>Tue, 13 Jan 2015 17:16:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9d60e1f-0b15-4aad-b742-a891c054a95a</guid><dc:creator>Artem Zemlyanukhin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;in what type of memory will be written to the new address? what will be with this address after reset?&lt;/p&gt;
&lt;p&gt;Best regards, Artem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change the mac address when the system boots up?</title><link>https://devzone.nordicsemi.com/thread/11083?ContentTypeID=1</link><pubDate>Wed, 25 Jun 2014 11:53:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc6cba54-9d91-49d2-96de-e941b3b2a7fb</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Check out the function &amp;quot;sd_ble_gap_address_set&amp;quot; in ble_gap.h.
Here&amp;#39;s an example:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ble_gap_addr_t gap_addr;
gap_addr.addr_type = BLE_GAP_ADDR_TYPE_RANDOM_STATIC;
// &amp;quot;my_random_addr&amp;quot; must be random generated.
memcpy(&amp;amp;gap_addr.addr, my_random_addr, sizeof(gap_addr.addr));
gap_addr.addr[5] |= 0xc0; // 2 MSBit must be &amp;#39;11&amp;#39; for RANDOM_STATIC address, see v4.0, Vol 3, Part C, chapter 10.8
err_code = sd_ble_gap_address_set(gap_addr);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>