<?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>nRF52833 MAC Address ramdonly changing while advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105268/nrf52833-mac-address-ramdonly-changing-while-advertising</link><description>Hello, 
 I am experiencing instances when my device (peripheral) MAC address changes randomly while the device is running and advertising. 
 MAC address changed during runtime from C7:2A:7D:C9:44:39 to 17:8B:E9:C7:E4:A1 
 MAC address reverted back from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Nov 2023 17:43:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105268/nrf52833-mac-address-ramdonly-changing-while-advertising" /><item><title>RE: nRF52833 MAC Address ramdonly changing while advertising</title><link>https://devzone.nordicsemi.com/thread/457676?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2023 17:43:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b45fd512-7fbc-442a-9dc6-2ad9ab0a8af5</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;See&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/2.0.0/reference/logging/index.html#logging-strings"&gt;https://docs.zephyrproject.org/2.0.0/reference/logging/index.html#logging-strings&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 MAC Address ramdonly changing while advertising</title><link>https://devzone.nordicsemi.com/thread/456752?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2023 16:20:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b641d93-f55d-4c96-8d13-32a476a5bf87</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Apologies for not responding earlier. I was away on holiday.&lt;/p&gt;
&lt;p&gt;Unfortunately, there is no specific way to reproduce this anomaly. In fact, it happens very rarely, perhaps once in few months. I have added some logging in my code so that if/when it happens I will share with you the logs. Please have a look at the attached code I added.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/**
 *****************************************************************************************************************************************************
 *  @brief  Reads the static BLE MAC address of the device (local) from the structure
 *          bt_hci_vs_static_addr then compare to the one stored in the FICR register.
 *          If the two do not match then a device reset is forced.
 *
 *  @return Non Zero - If the BLE MAC address is read successfully
 *          Zero     - If the BLE MAC address is NOT read successfully
 *
 *****************************************************************************************************************************************************
 */
int bluetooth_read_static_addr( void )
{
    struct bt_hci_vs_static_addr    addr[1];
    static char                     addr_str[BT_ADDR_STR_LEN];
    int                             addr_count;

    addr_count = bt_read_static_addr( addr, 1 );

    if ( addr_count &amp;gt; 0 )
    {
        bt_addr_to_str( &amp;amp;(addr[0].bdaddr), addr_str, sizeof(addr_str) );
        LOG_INF( &amp;quot;BT addr: %s\n&amp;quot;, &amp;amp;addr_str );
        LOG_HEXDUMP_DBG( addr_str,  sizeof(addr_str),   &amp;quot;Static Addr&amp;quot; );

        /* Read the source (local?) MAC address from the FICR register */
        {
            uint8_t mac_address[6];
            unsigned int device_addr_0 = NRF_FICR-&amp;gt;DEVICEADDR[0];
            unsigned int device_addr_1 = NRF_FICR-&amp;gt;DEVICEADDR[1];

            LOG_INF( &amp;quot;device_addr_0 = 0x%X, device_addr_1 = 0x%X&amp;quot;, device_addr_0, device_addr_1 );

            const uint8_t* part_0 = (const uint8_t*)(&amp;amp;device_addr_0);
            const uint8_t* part_1 = (const uint8_t*)(&amp;amp;device_addr_1);

            /* According to the BLE spec on valid MAC addresses, in Core Spec 5.3, Vol 6,
             * Part B, &amp;#167;1.3.2.1, the two MSB of the address must be equal to 1 for a static
             * device address. If you don&amp;#39;t do this, it will not match what you get with the
             * bt_read_static_addr() and bt_conn_get_info() functions.
             */
            mac_address[5] = part_1[1] | 0xC0;
            mac_address[4] = part_1[0];
            mac_address[3] = part_0[3];
            mac_address[2] = part_0[2];
            mac_address[1] = part_0[1];
            mac_address[0] = part_0[0];

            LOG_HEXDUMP_DBG( mac_address,  sizeof(mac_address),   &amp;quot;FICR Static Addr&amp;quot; );

            /* compare the local MAC address with the one read from the FICR register */
            if ( memcmp( &amp;amp;(addr[0].bdaddr.val), mac_address, sizeof(mac_address) ) )
            {
                 LOG_WRN( &amp;quot;Local MAC address does not match FICR&amp;quot; );

                /* Maybe we should also raise an alarm to flag this event */
                /*!!!TBD event_AddHighPriority(EV_HOME_STATION_RESET); */

                /* Reboot system with a software reset to retrieve the static random MAC address from the FICR */
                system_Reset();
            }
        }
    }

    return addr_count;
}

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Are you interested in any other specific logs ?&lt;/p&gt;
&lt;p&gt;I noticed when I run the above code I see these errors&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;&amp;lt;err&amp;gt; log: argument 0 in source bt log message &amp;quot;BT addr: &amp;quot; missinglog_strdup().&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;See below the output of my code in the debugger window.&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;font-size:75%;"&gt;[00:00:25.395,416] &amp;lt;inf&amp;gt; bt: BT addr: C7:2A:7D:C9:44:39&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;font-size:75%;"&gt;[00:00:25.395,416] &amp;lt;inf&amp;gt; bt: device_addr_0 = 0x7DC94439, device_addr_1 = 0x70F3072A&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;font-size:75%;"&gt;[00:00:25.409,820] &amp;lt;inf&amp;gt; bt: BT addr: C7:2A:7D:C9:44:39&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;font-size:75%;"&gt;[00:00:25.409,820] &amp;lt;inf&amp;gt; bt: device_addr_0 = 0x7DC94439, device_addr_1 = 0x70F3072A&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&gt;&lt;strong&gt;[00:00:26.231,933] &amp;lt;err&amp;gt; log: argument 0 in source bt log message &amp;quot;BT addr: &amp;quot; missinglog_strdup().&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&gt;&lt;strong&gt;[00:00:26.232,696] &amp;lt;err&amp;gt; log: argument 0 in source bt log message &amp;quot;BT addr: &amp;quot; missinglog_strdup().&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;font-size:75%;"&gt;[00:00:26.281,250] &amp;lt;inf&amp;gt; bt: BT addr: C7:2A:7D:C9:44:39&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;font-size:75%;"&gt;[00:00:26.281,280] &amp;lt;inf&amp;gt; bt: device_addr_0 = 0x7DC94439, device_addr_1 = 0x70F3072A&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;font-size:75%;"&gt;[00:00:27.281,158] &amp;lt;inf&amp;gt; bt: BT addr: C7:2A:7D:C9:44:39&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;font-size:75%;"&gt;[00:00:27.281,188] &amp;lt;inf&amp;gt; bt: device_addr_0 = 0x7DC94439, device_addr_1 = 0x70F3072A&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&gt;&lt;strong&gt;[00:00:27.281,860] &amp;lt;err&amp;gt; log: argument 0 in source bt log message &amp;quot;BT addr: &amp;quot; missinglog_strdup().&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&gt;&lt;strong&gt;[00:00:27.283,172] &amp;lt;err&amp;gt; log: argument 0 in source bt log message &amp;quot;BT addr: &amp;quot; missinglog_strdup().&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;font-size:75%;"&gt;[00:00:28.281,066] &amp;lt;inf&amp;gt; bt: BT addr: C7:2A:7D:C9:44:39&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;font-size:75%;"&gt;[00:00:28.281,097] &amp;lt;inf&amp;gt; bt: device_addr_0 = 0x7DC94439, device_addr_1 = 0x70F3072A&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;font-size:75%;"&gt;[00:00:29.281,250] &amp;lt;inf&amp;gt; bt: BT addr: C7:2A:7D:C9:44:39&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;font-size:75%;"&gt;[00:00:29.281,280] &amp;lt;inf&amp;gt; bt: device_addr_0 = 0x7DC94439, device_addr_1 = 0x70F3072A&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&gt;&lt;strong&gt;[00:00:29.284,210] &amp;lt;err&amp;gt; log: argument 0 in source bt log message &amp;quot;BT addr: &amp;quot; missinglog_strdup().&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&gt;&lt;strong&gt;[00:00:29.285,308] &amp;lt;err&amp;gt; log: argument 0 in source bt log message &amp;quot;BT addr: &amp;quot; missinglog_strdup().&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;font-size:75%;"&gt;[00:00:30.281,158] &amp;lt;inf&amp;gt; bt: BT addr: C7:2A:7D:C9:44:39&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;font-size:75%;"&gt;[00:00:30.281,188] &amp;lt;inf&amp;gt; bt: device_addr_0 = 0x7DC94439, device_addr_1 = 0x70F3072A&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;font-size:75%;"&gt;[00:00:31.281,005] &amp;lt;inf&amp;gt; bt: BT addr: C7:2A:7D:C9:44:39&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;font-size:75%;"&gt;[00:00:31.281,005] &amp;lt;inf&amp;gt; bt: device_addr_0 = 0x7DC94439, device_addr_1 = 0x70F3072A&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&gt;&lt;strong&gt;[00:00:31.286,132] &amp;lt;err&amp;gt; log: argument 0 in source bt log message &amp;quot;BT addr: &amp;quot; missinglog_strdup().&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;font-size:75%;"&gt;&lt;strong&gt;[00:00:31.287,200] &amp;lt;err&amp;gt; log: argument 0 in source bt log message &amp;quot;BT addr: &amp;quot; missinglog_strdup().&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;It seems that the error is caused by this line of code,&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;&lt;strong&gt;LOG_INF( &amp;quot;BT addr: %s\n&amp;quot;, &amp;amp;addr_str );&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Can you please explain why this error is manifesting itself now and how to get rid of it. I use LOG_INF throughout my code but I don&amp;#39;t see this error except in the code attached above,&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 MAC Address ramdonly changing while advertising</title><link>https://devzone.nordicsemi.com/thread/454755?ContentTypeID=1</link><pubDate>Wed, 08 Nov 2023 16:49:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:174ccbbd-1da0-497c-90af-20080b54f4a1</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Learner"]As I stated in a previous message, the MAC address&amp;nbsp;is very infrequent. The device can go for months without changing its address. I believe the change is occurring during advertising. The reason I noticed the change is because our proprietary application running under&amp;nbsp;Windows 10 could not connect to the device anymore over BLE. So, I checked the list of BLE devices that the application can see and noticed the MAC address of the device has changed.[/quote]
&lt;p&gt;That sounds so strange. With the information you provided, it&amp;#39;s hard to say what could cause the issue. If there are device logs, sniffer logs, or reproduction instructions, they might help investigate the issue.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 MAC Address ramdonly changing while advertising</title><link>https://devzone.nordicsemi.com/thread/454534?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 16:15:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7762067b-6b1a-4d0a-9c04-3ad66bcd64ce</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
[quote userid="77782" url="~/f/nordic-q-a/105268/nrf52833-mac-address-ramdonly-changing-while-advertising/454517"]Could you explain the frequency and in what situation it changes the MAC address, in advertising or in connection?[/quote]
&lt;p&gt;As I stated in a previous message, the MAC address&amp;nbsp;is very infrequent. The device can go for months without changing its address. I believe the change is occurring during advertising. The reason I noticed the change is because our proprietary application running under&amp;nbsp;Windows 10 could not connect to the device anymore over BLE. So, I checked the list of BLE devices that the application can see and noticed the MAC address of the device has changed.&lt;/p&gt;
[quote userid="77782" url="~/f/nordic-q-a/105268/nrf52833-mac-address-ramdonly-changing-while-advertising/454517"]Which type of address do you use?[/quote]
&lt;p&gt;The default Static Random.&lt;/p&gt;
[quote userid="77782" url="~/f/nordic-q-a/105268/nrf52833-mac-address-ramdonly-changing-while-advertising/454517"]Do you use a sample as a base to develop your application?[/quote]
&lt;p&gt;No, I am using our own application.&lt;/p&gt;
&lt;p&gt;Note, this is not an isolated case; other users on Devzone have experienced the same problem, see&amp;nbsp;&lt;span&gt;Case ID: 313249.&lt;/span&gt;&lt;/p&gt;
[quote userid="77782" url="~/f/nordic-q-a/105268/nrf52833-mac-address-ramdonly-changing-while-advertising/454517"]Could you provide the &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"&gt;sniffer log&lt;/a&gt; and device log when you observe the MAC address change?[/quote]
&lt;p&gt;It is going to be difficult because it may take months before the MAC address change can occur.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;Kind regards&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Mohamed&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 MAC Address ramdonly changing while advertising</title><link>https://devzone.nordicsemi.com/thread/454517?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 15:16:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86ca85b4-4017-4ad3-9b7c-7579dcd44244</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Learner"]my device&amp;nbsp;was sometimes changing its MAC address without going through a reset.&amp;nbsp;[/quote]
&lt;p&gt;Could you explain the frequency and in what situation it changes the MAC address, in advertising or in connection? Which type of address do you use? Do you use&amp;nbsp;&lt;span&gt;CONFIG_BT_PRIVACY?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Do you use a sample as a base to develop your application? If so, what is that?&lt;/p&gt;
&lt;p&gt;Could you provide the &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"&gt;sniffer log&lt;/a&gt; and device log when you observe the MAC address change?&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 MAC Address ramdonly changing while advertising</title><link>https://devzone.nordicsemi.com/thread/454503?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 14:36:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7a38009-4118-4190-be67-0317cb4a5d7c</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Thank you.&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f44f.svg" title="Clap"&gt;&amp;#x1f44f;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;But you still have not commented on why, before I added the option &lt;strong&gt;&lt;span style="font-size:75%;"&gt;BT_LE_ADV_OPT_USE_IDENTITY&lt;/span&gt;,&amp;nbsp;&lt;/strong&gt;my device&amp;nbsp;was sometimes changing its MAC address without going through a reset.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; According to Nordic&amp;#39;s documentation this is not the expected behaviour.&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 MAC Address ramdonly changing while advertising</title><link>https://devzone.nordicsemi.com/thread/454495?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 14:18:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afdd30c0-1584-43c1-b2bf-b0d9c808d95f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Mohamed,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I got it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please don&amp;#39;t hesitate to contact me if you need further help. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 MAC Address ramdonly changing while advertising</title><link>https://devzone.nordicsemi.com/thread/454384?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 10:03:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5122f746-d7de-4dc8-a133-2beb60a5e22f</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Good Morning Amanda,&lt;/p&gt;
&lt;p&gt;First, the MAC address change I reported does not happen often. In fact my device can go on for weeks and months&amp;nbsp;without changing its MAC address.&lt;/p&gt;
&lt;p&gt;Second, when it does change its MAC address it does it &lt;strong&gt;&lt;span style="text-decoration:underline;"&gt;without going through a reset.&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Finally, I have added the option&amp;nbsp;&lt;strong&gt;BT_LE_ADV_OPT_USE_IDENTITY&amp;nbsp;&lt;/strong&gt;as you suggested. I will be monitoring this in the coming weeks and months.&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 MAC Address ramdonly changing while advertising</title><link>https://devzone.nordicsemi.com/thread/454307?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2023 20:48:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8811635c-5fab-42b6-b74c-54d69c4e95de</guid><dc:creator>Amanda Hsieh</dc:creator><description>[quote user="Learner"]This suggests that if I don&amp;#39;t use&amp;nbsp;&lt;strong&gt;BT_LE_ADV_OPT_USE_IDENTITY &lt;/strong&gt;option then the&amp;nbsp;random static address can change &lt;span style="text-decoration:underline;"&gt;but only after a reset&lt;/span&gt;.[/quote]
&lt;p&gt;That&amp;#39;s correct. Do you still see it change the address with this option?&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 MAC Address ramdonly changing while advertising</title><link>https://devzone.nordicsemi.com/thread/454147?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2023 10:16:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cd8f2e7-aa89-410d-bf5d-65a793f361d3</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Good Morning Amanda,&lt;/p&gt;
&lt;p&gt;Thank you for your valuable support.&lt;/p&gt;
&lt;p&gt;Please bear with me if I keep&amp;nbsp;asking you the same question over and over again. This is because I believe the information contained in the link you sent me contradicts your answer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/building-a-ble-application-on-ncs-comparing-and-contrasting-to-softdevice-based-ble-applications"&gt;https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/building-a-ble-application-on-ncs-comparing-and-contrasting-to-softdevice-based-ble-applications&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;According to the link above,&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;strong&gt;...&amp;nbsp;Note if you want to advertise using local identity (&lt;span style="background-color:#ffff00;"&gt;static address not new address every time you reset&lt;/span&gt;) you should use&amp;nbsp;&lt;/strong&gt;&lt;span&gt;&lt;strong&gt;BT_LE_ADV_OPT_USE_IDENTITY&amp;nbsp;option.&lt;/strong&gt;&amp;nbsp;&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This suggests that if I don&amp;#39;t use&amp;nbsp;&lt;strong&gt;BT_LE_ADV_OPT_USE_IDENTITY &lt;/strong&gt;option then the&amp;nbsp;random static address can change &lt;span style="text-decoration:underline;"&gt;but only after a reset&lt;/span&gt;. Or am I understanding this wrong?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Mohamed&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 MAC Address ramdonly changing while advertising</title><link>https://devzone.nordicsemi.com/thread/454041?ContentTypeID=1</link><pubDate>Fri, 03 Nov 2023 20:32:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d92b8d1-9771-4c79-b3cb-89feaca8fe3c</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Yes.&lt;/p&gt;
&lt;p&gt;Yes.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you want to advertise identity you could use&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/connectivity/bluetooth/api/gap.html#c.@40.BT_LE_ADV_OPT_USE_IDENTITY"&gt;BT_LE_ADV_OPT_USE_IDENTITY&lt;/a&gt;&lt;span&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 MAC Address ramdonly changing while advertising</title><link>https://devzone.nordicsemi.com/thread/454005?ContentTypeID=1</link><pubDate>Fri, 03 Nov 2023 14:35:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99899440-8d21-49b4-870f-042e6460de51</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Thank you for your support.&lt;/p&gt;
&lt;p&gt;OK, I will add&amp;nbsp;&lt;span&gt;BT_LE_ADV_OPT_USE_IDENTITY&amp;nbsp; to the&amp;nbsp;BT_LE_ADV_PARAM parameters.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Are you saying if I don&amp;#39;t use the&amp;nbsp;&lt;span&gt;BT_LE_ADV_OPT_USE_IDENTITY&amp;nbsp;option in&amp;nbsp;BT_LE_ADV_PARAM then the device can randomly change its MAC address &lt;strong&gt;&lt;span style="text-decoration:underline;"&gt;at runtime without a reset or a power cycle&lt;/span&gt;?&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As I already stated I am seeing the device changing its MAC address&amp;nbsp;&lt;strong&gt;&lt;span style="text-decoration:underline;"&gt;without a reset or a power cycle&lt;/span&gt;.&lt;/strong&gt; Is this possible?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Mohamed&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 MAC Address ramdonly changing while advertising</title><link>https://devzone.nordicsemi.com/thread/453977?ContentTypeID=1</link><pubDate>Fri, 03 Nov 2023 13:13:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49b8bd6d-8220-4748-8adf-63d0a5e9a012</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;As I explained in the previous reply,&amp;nbsp;&lt;span&gt;you should use&amp;nbsp;&lt;/span&gt;&lt;span&gt;BT_LE_ADV_OPT_USE_IDENTITY&amp;nbsp;option in the BT_LE_ADV_PARAM.&amp;nbsp;Check the Advertising section in this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/building-a-ble-application-on-ncs-comparing-and-contrasting-to-softdevice-based-ble-applications"&gt;guide&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 MAC Address ramdonly changing while advertising</title><link>https://devzone.nordicsemi.com/thread/453671?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2023 10:31:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2410f44-5b73-4b30-9109-beabc1ec9193</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Good Morning Amanda,&lt;/p&gt;
[quote userid="77782" url="~/f/nordic-q-a/105268/nrf52833-mac-address-ramdonly-changing-while-advertising/453564"]What is your application? Do you mean in the advertising? If so, how do you set the&amp;nbsp;BT_LE_ADV_PARAM?[/quote]
&lt;p&gt;Yes, I am referring to the MAC address in the advertising. My device is a connectable peripheral that other devices should be able to connect to over BLE.&lt;/p&gt;
&lt;p&gt;This is what I am doing to set the advertising parameters,&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;#define BT_LE_ADV_CONN_SLOW&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BT_LE_ADV_PARAM((BT_LE_ADV_OPT_CONNECTABLE | BT_LE_ADV_OPT_SCANNABLE), &lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;BT_GAP_ADV_SLOW_INT_MIN, BT_GAP_ADV_SLOW_INT_MAX, NULL)&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;#define BT_LE_ADV_CONN_FAST&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BT_LE_ADV_PARAM((BT_LE_ADV_OPT_CONNECTABLE | BT_LE_ADV_OPT_SCANNABLE), BT_GAP_ADV_FAST_INT_MIN_2, BT_GAP_ADV_FAST_INT_MAX_2, NULL)&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt; /* ble_ad[] Can be up to 29 bytes */&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;static uint8_t ble_ad[HB_BLE_AD_BUFF_SIZE_MAX] = { 0U };&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;/* legacy advertisements up to 31 bytes Max */&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;static const struct bt_data ad[] = { BT_DATA(BT_DATA_MANUFACTURER_DATA, &amp;amp;ble_ad[0], sizeof(ble_ad)) };&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;/* ble_sd[] Can be up to 29 bytes */&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;static uint8_t ble_sd[HB_BLE_SD_BUFF_SIZE_MAX] = { 0U };&amp;nbsp;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;/* legacy advertisements up to 31 bytes Max */&lt;br /&gt;static const struct bt_data sd[] = { BT_DATA(BT_DATA_MANUFACTURER_DATA, &amp;amp;ble_sd[0], sizeof(ble_sd)) };&amp;nbsp;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;...&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;/* Start advertising */&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bt_le_adv_start(BT_LE_ADV_CONN_SLOW, ad, ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd));&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="77782" url="~/f/nordic-q-a/105268/nrf52833-mac-address-ramdonly-changing-while-advertising/453564"]I&lt;span&gt;f you want to advertise using local identity (static address not new address every time you reset) you should use&amp;nbsp;&lt;/span&gt;&lt;span&gt;BT_LE_ADV_OPT_USE_IDENTITY&amp;nbsp;option.&amp;nbsp;&lt;/span&gt;[/quote]
&lt;p&gt;Sometimes, I am seeing the advertising MAC address&amp;nbsp;&lt;span style="text-decoration:underline;"&gt;changing at runtime without the device going through a reset&lt;/span&gt;. According to the documentation this should not happen.&amp;nbsp;Then when I reset the device it reverts back to its old address.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you please explain what could be causing this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="92434" url="~/f/nordic-q-a/105268/nrf52833-mac-address-ramdonly-changing-while-advertising/453532"]&lt;p&gt;According to Nordic&amp;#39;s Academy Bluetooth-address page,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;&lt;em&gt;A random static address can be allocated and then fixed throughout the lifetime of the device. It can be altered at bootup,&lt;strong&gt; but not during runtime.&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&amp;nbsp;&amp;quot;&lt;/p&gt;[/quote]
&lt;p&gt;I am still unclear about how an application can change a static random address at boot-up. Please clarify.&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 MAC Address ramdonly changing while advertising</title><link>https://devzone.nordicsemi.com/thread/453564?ContentTypeID=1</link><pubDate>Wed, 01 Nov 2023 16:51:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bff2239-0a33-4a66-a258-bb5da042c229</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user="Learner"] why am I seeing the random static MAC address of my device changing at runtime?[/quote]
&lt;p&gt;What is your application? Do you mean in the advertising? If so, how do you set the&amp;nbsp;BT_LE_ADV_PARAM? I&lt;span&gt;f you want to advertise using local identity (static address not new address every time you reset) you should use&amp;nbsp;&lt;/span&gt;&lt;span&gt;BT_LE_ADV_OPT_USE_IDENTITY&amp;nbsp;option.&amp;nbsp;Check the Advertising section in this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/building-a-ble-application-on-ncs-comparing-and-contrasting-to-softdevice-based-ble-applications"&gt;guide&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="Learner"]&lt;p&gt;&lt;span&gt;&amp;quot;&lt;strong&gt;Factory information configuration registers (FICR) are pre-programmed in factory and cannot be erased by the user.&lt;/strong&gt;&amp;nbsp;&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However,&amp;nbsp;you said&amp;nbsp;in your reply a random static address can be changed at bootup. Please explain how.&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;You can set the application to use the random static address at bootuping the application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 MAC Address ramdonly changing while advertising</title><link>https://devzone.nordicsemi.com/thread/453532?ContentTypeID=1</link><pubDate>Wed, 01 Nov 2023 14:12:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0a95446-a212-4316-ba85-7ec3e3ed9be7</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Thank you for your prompt response.&lt;/p&gt;
&lt;p&gt;I do not want to set the MAC address. I am happy to use the default address.&lt;/p&gt;
[quote userid="77782" url="~/f/nordic-q-a/105268/nrf52833-mac-address-ramdonly-changing-while-advertising/453515"]The default address used by the Bluetooth Stacks in nRF52833 is a random static address obtained from the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/ficr.html?cp=5_0_0_3_3_0_6#register.DEVICEADDR-0-1"&gt;DEVICEADDR[n]&lt;/a&gt;&amp;nbsp;FICR registers (random number programmed during chip manufacturing).[/quote]
&lt;p&gt;According to Nordic&amp;#39;s Academy Bluetooth-address page,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;&lt;em&gt;A random static address can be allocated and then fixed throughout the lifetime of the device. It can be altered at bootup,&lt;strong&gt; but not during runtime.&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&amp;nbsp;&amp;quot;&lt;/p&gt;
&lt;p&gt;So, why am I seeing the random static MAC address of my device changing at runtime?&lt;/p&gt;
&lt;p&gt;Then when I restart (hard reset) the device it reverts back to the original MAC address.&lt;/p&gt;
&lt;p&gt;As far as I can make out, I am not doing anything in my application code to change it.&lt;/p&gt;
&lt;p&gt;Please explain what could be happening.&lt;/p&gt;
&lt;p&gt;Also, according to Nordic&amp;#39;s documentation,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;&lt;strong&gt;Factory information configuration registers (FICR) are pre-programmed in factory and cannot be erased by the user.&lt;/strong&gt;&amp;nbsp;&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However,&amp;nbsp;you said&amp;nbsp;in your reply a random static address can be changed at bootup. Please explain how.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 MAC Address ramdonly changing while advertising</title><link>https://devzone.nordicsemi.com/thread/453515?ContentTypeID=1</link><pubDate>Wed, 01 Nov 2023 13:29:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99389bf5-d96d-45be-b30a-59f07a4f2dec</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What type of address would you like to set?&amp;nbsp;&lt;/span&gt;Bluetooth Low Energy comes with different address types, which you can read about in our DevAcademy course:&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/topic/bluetooth-address/"&gt;https://academy.nordicsemi.com/topic/bluetooth-address/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Only public address type is liable to a fee (to the&amp;nbsp;&lt;span&gt;IEEE registration authority), random addresses can be used freely. The default address used by the Bluetooth Stacks in nRF52833 is a random static address obtained from the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/ficr.html?cp=5_0_0_3_3_0_6#register.DEVICEADDR-0-1"&gt;DEVICEADDR[n]&lt;/a&gt;&amp;nbsp;FICR registers (random number programmed during chip manufacturing).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you want to set Resolvable Private Addresses, you could use&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_BT_PRIVACY"&gt;CONFIG_BT_PRIVACY&lt;/a&gt;.&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>