<?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>nRF52840 custom board does not advertise</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69846/nrf52840-custom-board-does-not-advertise</link><description>I have a custom board using nRF52840. Some boards return success from sd_ble_gap_adv_start but no advertisement is seen in nRF Connect running on a Google Pixel 4 phone. Of the set of 4 boards I have to work with: 
 1 works fine 
 1 had a defective LF</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Dec 2020 09:00:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69846/nrf52840-custom-board-does-not-advertise" /><item><title>RE: nRF52840 custom board does not advertise</title><link>https://devzone.nordicsemi.com/thread/286655?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2020 09:00:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d87ecc1c-007b-4daa-b78f-77eef224ed19</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for the update! So it is not working with NRF_CLOCK_LF_SRC_SYNTH? NRF_CLOCK_LF_SRC_SYNTH relies on the HFXO (32MHz crystal) so maybe the HF crystal is not starting at all.&lt;/p&gt;
&lt;p&gt;Could you try to see if you are able to start the HFXO at the beginning of main() as shown in the snippet below?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART = 1;
    /* Wait until the crystal oscillator has started */
    while(NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED == 0)
      {};
    &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You may also try the RSSI Viewer app in &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Connect-for-desktop"&gt;nRF connect for desktop&lt;/a&gt; to check if the RADIO is transmitting anything if you have a nordic dev kit or dongle laying around.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 custom board does not advertise</title><link>https://devzone.nordicsemi.com/thread/286568?ContentTypeID=1</link><pubDate>Thu, 24 Dec 2020 15:58:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abd1aec3-5542-409b-abb9-493970652a9f</guid><dc:creator>ddjsbx</dc:creator><description>&lt;p&gt;Ignore this!&amp;nbsp; I had experimented with different LF clock source settings in sdk_config.h, trying to diagnose why one board would not return from sd_softdevice_enable().. That particular board did have a dead LF crystal, and I got it to return from sd_softdevice_enable by changing NRF_SDH_CLOCK_LF_SRC to NRF_CLOCK_LF_SRC_SYNTH.&amp;nbsp; But I had left sdk_config,h modfied and apparently that prevents sd_softdevice_enable if the LF crystal oscillator is working.&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:line-through;"&gt;I have another interesting data point.&amp;nbsp; I am pretty sure that at one point I had this board advertising successfully using ble_app_blinky modified to work with my board.&amp;nbsp; But last time I tried it that did not advertise either.&amp;nbsp; I decided to try another example, app_beacon.&amp;nbsp; I modified that example to work with my board, and app_beacon does advertise.&amp;nbsp; This is starting to seem like some kind of random startup issue.&amp;nbsp; Does the nRF52840 start up with RC oscillator then switch to xtal?&amp;nbsp; What if the xtal sometimes did not start, so it remained running from RC.&amp;nbsp; &amp;nbsp;Could that show up as not advertising?&amp;nbsp; (Opposed to this scenario, one of my hardware guys examined both LF and HF oscillators on a board that doesn&amp;#39;t advertise, and they both seemed to be running fine)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 custom board does not advertise</title><link>https://devzone.nordicsemi.com/thread/286497?ContentTypeID=1</link><pubDate>Wed, 23 Dec 2020 15:13:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a7ca952-e2f2-45c6-afc7-c44204d6ea75</guid><dc:creator>ddjsbx</dc:creator><description>&lt;p&gt;Hi Vidar, that&amp;#39;s an interesting possibility, we will look into it.&amp;nbsp; Do you think that if the start advertising call returns success, that means that down in the softdevice it should be busily sending advertisement packets, but that it really has no way of knowing if the radio is working or if the packets are actually going out over the air?&amp;nbsp; Do you know if there is a case where SD replies success and starts advertising but then gets somehow bumped out of its &amp;quot;advertising&amp;quot; state?&amp;nbsp; Would registering for &amp;quot;radio events&amp;quot; tell us if something like this happens?&amp;nbsp; (I saw some reference to registering for radio events, I don&amp;#39;t think our firmware currently has that)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 custom board does not advertise</title><link>https://devzone.nordicsemi.com/thread/286493?ContentTypeID=1</link><pubDate>Wed, 23 Dec 2020 14:56:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24c56369-3461-4de3-b729-e120e6f49e6c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Could it maybe be related to the 32M crystal as one user reported here: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/66107/samsung-a-series-not-detecting-nrf52832"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/66107/samsung-a-series-not-detecting-nrf52832&lt;/a&gt;? The Softdevice has no way of knowing if the HF clock is accurate or not.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>