<?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>Advertising startup fails with status 0x03</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65317/advertising-startup-fails-with-status-0x03</link><description>Hello, I&amp;#39;ve tried the &amp;quot;smp_svr&amp;quot; sample from the nRF Connect SDK on my new nRF52832 boards because I wanted to test Bluetooth advertising and DFU capability. They compile and flash successfully, but unfortunately, the board doesn&amp;#39;t start the advertiser</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Sep 2020 14:29:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65317/advertising-startup-fails-with-status-0x03" /><item><title>RE: Advertising startup fails with status 0x03</title><link>https://devzone.nordicsemi.com/thread/267492?ContentTypeID=1</link><pubDate>Tue, 01 Sep 2020 14:29:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7b3d323-71fc-4629-b40c-3d293920e44d</guid><dc:creator>GRBaset</dc:creator><description>&lt;p&gt;&lt;span&gt;Nevermind, I solved the problem! After looking up the disconnection error message online, I found out that it was a problem with the clock. I changed it to the internal RC oscillator, changed the accuracy, and it now works perfectly (just set&amp;nbsp;&lt;/span&gt;&lt;span&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC and&amp;nbsp;&lt;/span&gt;&lt;span&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_250PPM&lt;/span&gt;). Thanks for your help.&lt;/p&gt;
&lt;p&gt;&lt;span id="AutoConvertInstalled"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="AutoConvertInstalled"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="AutoConvertInstalled"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="AutoConvertInstalled"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising startup fails with status 0x03</title><link>https://devzone.nordicsemi.com/thread/267490?ContentTypeID=1</link><pubDate>Tue, 01 Sep 2020 14:14:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9cc5708-0d8a-44e7-b229-d037fe4daccd</guid><dc:creator>GRBaset</dc:creator><description>&lt;p&gt;EDIT: I solved the problem. See the solution in another comment.&lt;/p&gt;
&lt;p&gt;Hello, I&amp;#39;m testing on a custom board, the last time I used the following commands (nrf52832_brd is my custom board definition, which I based on the DK):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog -e
west build -b nrf52832 -p
west flash&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Unfortunately, I do not have access to a DK currently, but I&amp;#39;ve been able to successfully start advertising by calling bt_le_adv_start twice, like this (I used the &amp;quot;peripheral&amp;quot; sample because it&amp;#39;s easier to compile and debug, as it doesn&amp;#39;t require MCUboot):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;bt_le_adv_start(BT_LE_ADV_CONN_NAME, ad, ARRAY_SIZE(ad), NULL, 0);
err = bt_le_adv_start(BT_LE_ADV_CONN_NAME, ad, ARRAY_SIZE(ad), NULL, 0);
if (err) {
    printk(&amp;quot;Advertising failed to start (err %d)\n&amp;quot;, err);
    return;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The second time, it starts advertising and I can see the device in nRF Connect. Unfortunately, when I try to connect to the device, it&amp;nbsp;quickly disconnects with the error&amp;nbsp;&amp;quot;Disconnected (reason 0x08)&amp;quot;, and it keeps trying to connect until I manually cancel it, as shown in the log:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.3.0-rc1-ncs1  ***
Bluetooth initialized
[00:00:00.006,286] &amp;lt;inf&amp;gt; fs_nvs: 6 Sectors of 4096 bytes
[00:00:00.006,286] &amp;lt;inf&amp;gt; fs_nvs: alloc wra: 0, fc0
[00:00:00.006,286] &amp;lt;inf&amp;gt; fs_nvs: data wra: 0, 4c
[00:00:00.007,720] &amp;lt;inf&amp;gt; bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)
[00:00:00.007,720] &amp;lt;inf&amp;gt; bt_hci_core: HW Variant: nRF52x (0x0002)
[00:00:00.007,720] &amp;lt;inf&amp;gt; bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 2.3 Build 0
[00:00:00.007,995] &amp;lt;inf&amp;gt; bt_hci_core: No ID address. App must call settings_load()
[00:00:00.010,559] &amp;lt;inf&amp;gt; bt_hci_core: Identity: df:36:63:1e:83:34 (random)
[00:00:00.010,589] &amp;lt;inf&amp;gt; bt_hci_core: HCI: version 5.2 (0x0b) revision 0x0000, manufacturer 0x05f1
[00:00:00.010,589] &amp;lt;inf&amp;gt; bt_hci_core: LMP: version 5.2 (0x0b) subver 0xffff
Advertising successfully started
[00:00:00.515,716] &amp;lt;wrn&amp;gt; bt_hci_core: opcode 0x200a status 0x03
[00:00:00.515,747] &amp;lt;err&amp;gt; bt_hci_core: Failed to start advertiser
Connected
Disconnected (reason 0x08)
Connected
Disconnected (reason 0x08)
Connected
Disconnected (reason 0x08)
Connected
Disconnected (reason 0x08)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="AutoConvertInstalled"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="AutoConvertInstalled"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="AutoConvertInstalled"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="AutoConvertInstalled"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="AutoConvertInstalled"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style="left:60px;position:absolute;top:-20px;" id="gtx-trans"&gt;
&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising startup fails with status 0x03</title><link>https://devzone.nordicsemi.com/thread/267150?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2020 08:41:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1553c535-0788-47ad-9e59-98f488f86ad2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am not able to reproduce this using the smp_svr sample (zephyr\samples\subsys\mgmt\mcumgr\smp_svr) from NCS 1.3 and testing on a DK. I build and flash like this, and the device advertises without any problems:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;west build -b nrf52dk_nrf52832 --pristine
west flash&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Can you explain in detail how you build and flash the sample? Do you test on a DK or custom board? If a custom board, does it work if you test on a DK instead (to narrow down the issue)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising startup fails with status 0x03</title><link>https://devzone.nordicsemi.com/thread/266997?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2020 12:18:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:791b91c9-869d-4bfc-bb8a-936e950b7f07</guid><dc:creator>GRBaset</dc:creator><description>&lt;p&gt;I&amp;#39;m using v1.3.0 on macOS&amp;nbsp;10.15.6, and I built and flashed the examples using west, using the nrfjprog runner (the board is attached to a J-Link).&lt;/p&gt;
&lt;p&gt;&lt;span id="AutoConvertInstalled"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising startup fails with status 0x03</title><link>https://devzone.nordicsemi.com/thread/266996?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2020 12:12:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a296b4fe-b10a-4cfd-b8b3-dd2e92330c63</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Which nRF Connect SDK (NCS) version do you use? And how do you build and flash the example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>