<?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>BLE not starting in custom Board of NRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29839/ble-not-starting-in-custom-board-of-nrf52832</link><description>Hi, 
 We made a custom PCB using the NRF52832 and followed the reference design. While everything else is working in our system, the BLE part is not working. We are using SDK 12.3 with Softdevice of S132. It seems like the radio is not getting turned</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Jan 2018 10:24:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29839/ble-not-starting-in-custom-board-of-nrf52832" /><item><title>RE: BLE not starting in custom Board of NRF52832</title><link>https://devzone.nordicsemi.com/thread/118573?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2018 10:24:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f752050a-f1ac-4008-a430-94b8536542ef</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Great to hear that the issue is now resolved.&lt;/p&gt;
&lt;p&gt;The HFCLK is either running on internal oscillator (HFINT) or crystal oscillator (HFXO). The TIMERS can be using HFINT or HFXO, but the RADIO need to use HFXO.&lt;/p&gt;
&lt;p&gt;Q: If we start the clock using NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART = 1; then it is mentioned in the datasheet that HFXO will get started instead of HFINT. This means even the timers are running on the external oscillator. Isn&amp;#39;t that correct?&lt;/p&gt;
&lt;p&gt;A: Yes, that is correct. You can check if the HFCLK is using HFINT or HFXO by calling the function &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/group__nrf__drv__clock.html?cp=4_0_0_6_9_0_0_6#gae25988638664f2e4da8512b221adfdfd"&gt;nrf_drv_clock_hfclk_is_running()&lt;/a&gt;. The function will return true if you are using the HFXO.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE not starting in custom Board of NRF52832</title><link>https://devzone.nordicsemi.com/thread/118572?ContentTypeID=1</link><pubDate>Wed, 24 Jan 2018 07:41:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3519518-b366-409e-a862-83122265e021</guid><dc:creator>soumil</dc:creator><description>&lt;p&gt;Hey sigurd, we realized that the orientation of the High-Frequency clock was not correct which you pointed out as well. We fixed that and BLE is now working fine. We are very confused on how the timers are running fine but the radio is not. If we start the clock using  NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART = 1; then it is mentioned in the datasheet that HFXO will get started instead of HFINT. This means even the timers are running on the external oscillator. Isn&amp;#39;t that correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE not starting in custom Board of NRF52832</title><link>https://devzone.nordicsemi.com/thread/118570?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2018 07:10:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5749c85-d45a-4f0c-869a-be3351ea8375</guid><dc:creator>soumil</dc:creator><description>&lt;p&gt;Hey Sigurd. I tried all the approaches you mentioned but the device is still not visible. Could it be because of load capacitance of the external crystal or the maybe the Antenna not working?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE not starting in custom Board of NRF52832</title><link>https://devzone.nordicsemi.com/thread/118569?ContentTypeID=1</link><pubDate>Thu, 18 Jan 2018 10:30:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab6daa33-8b03-4a57-82dc-6bdf4173a1dc</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;The HFCLK controller supports both internal oscillator (HFINT) and crystal oscillator (HFXO). So it could be that your timers are running on the HFINT. The RADIO need to use HFXO. You could try to debug and see if get any error-messages or if the code is stuck in a loop somewhere. See &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;this post on debugging&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE not starting in custom Board of NRF52832</title><link>https://devzone.nordicsemi.com/thread/118568?ContentTypeID=1</link><pubDate>Thu, 18 Jan 2018 10:23:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ad490d5-685b-41b3-a15b-87f5ac207061</guid><dc:creator>soumil</dc:creator><description>&lt;p&gt;Thanks Sigurd. We are actually using High Frequency clock in the code before doing any BLE activity and the timers are running fine which tells us that there is no problem with the HFCLK. Hence, I think Low Frequency clock could the reason. Let me know if there is something else to try.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE not starting in custom Board of NRF52832</title><link>https://devzone.nordicsemi.com/thread/118571?ContentTypeID=1</link><pubDate>Thu, 18 Jan 2018 10:15:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c295d628-0f9b-4f01-8714-c0f88bc57a3b</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;If the above changes does not help. Then you should check that the HF crystal is correctly mounted, i.e. not turned 90 degrees.&lt;/p&gt;
&lt;p&gt;You could also add this code at the start of main(), and check that you are not getting stuck in the while loop. If you get stuck in the while-loop, then you have some problem with the HF crystal.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  // Start HFCLK from crystal oscillator. The radio needs crystal to function correctly.
  NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART = 1;
  while (NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED == 0);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE not starting in custom Board of NRF52832</title><link>https://devzone.nordicsemi.com/thread/118567?ContentTypeID=1</link><pubDate>Thu, 18 Jan 2018 10:08:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ddde499-02b7-4103-8c67-58a0aceea47f</guid><dc:creator>soumil</dc:creator><description>&lt;p&gt;We do have a low-frequency clock in the circuit. I have tried the approach which you have mentioned Andre. I will change the settings as recommended by Sigurd and try it out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE not starting in custom Board of NRF52832</title><link>https://devzone.nordicsemi.com/thread/118566?ContentTypeID=1</link><pubDate>Thu, 18 Jan 2018 09:58:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:accb5daa-cf3e-4159-97c6-a819502bf178</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Note that LFCLK Synthesized from HFCLK draws alot of power. If the board does not have a LF crystal, the recommended config is:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define NRF_CLOCK_LFCLKSRC      {.source       = NRF_CLOCK_LF_SRC_RC,            \
                                .rc_ctiv       = 32,                                \
                                .rc_temp_ctiv  = 2,                                \
                                .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE not starting in custom Board of NRF52832</title><link>https://devzone.nordicsemi.com/thread/118565?ContentTypeID=1</link><pubDate>Thu, 18 Jan 2018 09:45:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c081cf85-317f-472e-8212-23247610574a</guid><dc:creator>Andre</dc:creator><description>&lt;p&gt;The low frequency clock can be a problem. If your custom board does not have a low frequency crystal connected, the code will wait forever for it to start. This is not a hardfault, just a while loop with a condition that never changes.&lt;/p&gt;
&lt;p&gt;If you want to use a board without low frequency crystal, you should select another low frequency clock source. Try something like&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define NRF_CLOCK_LFCLKSRC      {.source       = NRF_CLOCK_LF_SRC_SYNTH,            \
                                .rc_ctiv       = 0,                                \
                                .rc_temp_ctiv  = 0,                                \
                                .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>