<?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>Local BLE Address getting erased after flash and random address is showing instead</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82952/local-ble-address-getting-erased-after-flash-and-random-address-is-showing-instead</link><description>Hi Nordic Team, 
 
 My dev enviroment is as follow: 
 nRF52832(ble central)+ S132+ SES+ SDK 17.0 
 
 We are facing an issue regarding local BLE Address . When we are flashing code , our local ble address is getting wiped out and a random ble address is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Dec 2021 11:38:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82952/local-ble-address-getting-erased-after-flash-and-random-address-is-showing-instead" /><item><title>RE: Local BLE Address getting erased after flash and random address is showing instead</title><link>https://devzone.nordicsemi.com/thread/344572?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 11:38:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d58c4e7a-0e2d-4467-8ae7-d4f0204172d7</guid><dc:creator>Nagma</dc:creator><description>&lt;p&gt;Alright, thank you. I will look into it.&amp;nbsp; Happy holidays and Happy new year!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Local BLE Address getting erased after flash and random address is showing instead</title><link>https://devzone.nordicsemi.com/thread/344568?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 11:20:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0195b1a4-b134-4822-be20-31e6d0d3c30f</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You can check out the&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_app_ipsp_initiator.html"&gt; IPSP initiator example&lt;/a&gt; in the nRF5 SDK for an example of how to set the BLE_GAP_ADDRESS to as a PUBLIC type.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;
&lt;p&gt;PS:&amp;nbsp;We will be short on staff during the Holiday period, and delayed replies must be expected. We will be back to full staff on January 3rd. Happy holidays and happy new year!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Local BLE Address getting erased after flash and random address is showing instead</title><link>https://devzone.nordicsemi.com/thread/344399?ContentTypeID=1</link><pubDate>Mon, 20 Dec 2021 14:21:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7889c7c6-0c6f-4960-962d-1fb0126baec0</guid><dc:creator>Nagma</dc:creator><description>&lt;p&gt;Yes, I am talking about Bluetooth Device address . We are using NINA B111 BLE Chip.&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;void set_addr(void)
{
  uint32_t err_code;
  ble_gap_addr_t my_addr;
  err_code = sd_ble_gap_addr_get(&amp;amp;my_addr);
  APP_ERROR_CHECK(err_code);



  my_addr.addr_type = BLE_GAP_ADDR_TYPE_PUBLIC;
 
  memcpy((uint8_t *)my_addr.addr, (uint8_t *)(NRF_UICR + 0x0080), BLE_GAP_ADDR_LEN);

  

  err_code = sd_ble_gap_addr_set(&amp;amp;my_addr);
  APP_ERROR_CHECK(err_code);

}&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have tried to set address using sd_ble_gap_addr_set() following few posts here. Is this the right way to do it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Local BLE Address getting erased after flash and random address is showing instead</title><link>https://devzone.nordicsemi.com/thread/344392?ContentTypeID=1</link><pubDate>Mon, 20 Dec 2021 13:59:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:baf8b499-c85d-44eb-8903-73009b5c7104</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I assume you are&amp;nbsp;referring to the BLE GAP address here, or what? If so, it sounds like you&amp;#39;ve set the address type to a random one so that it will be randomized after flashing the device. If you&amp;#39;re referring to something else, can you specify what address this is?&lt;/p&gt;
&lt;p&gt;In order to save something between flashes, you need to store it in the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fuicr.html"&gt;UICR page&lt;/a&gt;, which shouldn&amp;#39;t be erased when the device is programmed.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>