<?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>Is external crystal neccessary at all on 52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25540/is-external-crystal-neccessary-at-all-on-52832</link><description>As i am migrating to 52 and tuning the ble app, i realized by reading many posts here that: 
 
 external HF xtal is not recommended 
 external LF xtal can be replaced by using internal xtal with temperature compensation. 
 
 So does that mean external</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Oct 2017 07:21:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25540/is-external-crystal-neccessary-at-all-on-52832" /><item><title>RE: Is external crystal neccessary at all on 52832</title><link>https://devzone.nordicsemi.com/thread/100706?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 07:21:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aab279ad-0965-4d0b-ba61-92ddc90eb6a3</guid><dc:creator>Roland</dc:creator><description>&lt;p&gt;Thank you @Sigurd, that&amp;#39;s perfect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is external crystal neccessary at all on 52832</title><link>https://devzone.nordicsemi.com/thread/100709?ContentTypeID=1</link><pubDate>Tue, 03 Oct 2017 07:26:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c0ee5a2-d0a6-445c-b9ff-dc875056c04b</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;When using the internal RC oscillator, the SoftDevice will calibrate the RC oscillator using the HF 32MHz crystal. The recommended configuration for &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/structnrf__clock__lf__cfg__t.html?cp=2_3_0_1_0_2_8_4_0_1#a68174ef9ad43f1f8ce7baceb90bf81cd"&gt;NRF_CLOCK_LF_SRC_RC&lt;/a&gt; on nRF52 is rc_ctiv=16 and rc_temp_ctiv=2. This will ensure calibration at least once every 8 seconds and for temperature changes of 0.5 degrees Celsius every 4 seconds.
The &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/recommended_op_conditions.html?cp=2_1_0_5#concept_vng_xls_2q"&gt;recommended operating temperature&lt;/a&gt; for the nRF52832 is between -40 to +85 degrees Celsius, so -20 degrees should not be a problem for the nRF52832.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is external crystal neccessary at all on 52832</title><link>https://devzone.nordicsemi.com/thread/100704?ContentTypeID=1</link><pubDate>Tue, 03 Oct 2017 03:34:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dd890cd-27f4-4389-ba74-cfc11afa2def</guid><dc:creator>Roland</dc:creator><description>&lt;p&gt;@Sigurd thank you. One further concern is, as it an industrial application, how is the internal RC behaving under large temperature fluctuation, like -20degree in winter? Do i need to use different calibration parameters?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is external crystal neccessary at all on 52832</title><link>https://devzone.nordicsemi.com/thread/100707?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2017 09:07:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b67e714d-b9e5-4a0b-93b3-96909103c167</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The run current for the 32.768 kHz crystal oscillator is 0.25 µA, while the run current for the 32.768 kHz RC oscillator is 0.6 µA. Except for this there is no &amp;quot;performance degrade&amp;quot;. You save some cost and PCB space by using internal RC, but it uses a bit more power.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is external crystal neccessary at all on 52832</title><link>https://devzone.nordicsemi.com/thread/100705?ContentTypeID=1</link><pubDate>Sat, 30 Sep 2017 14:17:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fd989e1-a589-4634-a398-23e2eaa9f63a</guid><dc:creator>Roland</dc:creator><description>&lt;p&gt;@Sigurd,&lt;/p&gt;
&lt;p&gt;Turns out that 32M xtal is faulty. Replace with the part number in official BOM resolve the problem. thanks for the support.&lt;/p&gt;
&lt;p&gt;Compared with using external LF, will there be any performance degrade if i stick to use the internal LF RC with BLE activities? and by how much? is that some figure can be quantifiable？&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is external crystal neccessary at all on 52832</title><link>https://devzone.nordicsemi.com/thread/100700?ContentTypeID=1</link><pubDate>Fri, 29 Sep 2017 15:19:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:094d3750-8355-48c5-a780-dc1eb10a6343</guid><dc:creator>Roland</dc:creator><description>&lt;p&gt;@Sigurd,&lt;/p&gt;
&lt;p&gt;thanks for the answer. That explains the problem. I did not see waveform of 32M xtal on oscilloscope so there must be some problems about it. I will test more and let you know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is external crystal neccessary at all on 52832</title><link>https://devzone.nordicsemi.com/thread/100701?ContentTypeID=1</link><pubDate>Fri, 29 Sep 2017 12:27:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b011b94a-fc42-4bf3-9c57-4c1987567fa6</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Do you have a oscilloscope that can measure 32 MHz ?&lt;/p&gt;
&lt;p&gt;You can try to call &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html?cp=2_3_0_1_0_2_7_2_3#ga3e5afb495a1b0307c749cc268df94a74"&gt;sd_clock_hfclk_request()&lt;/a&gt;, and then call &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html?cp=2_3_0_1_0_2_7_2_1#ga622439323dd33dbf6de9cf4508478d9e"&gt;sd_clock_hfclk_is_running&lt;/a&gt;. &lt;code&gt;sd_clock_hfclk_is_running()&lt;/code&gt; returns 1 if the external crystal oscillator is running.&lt;/p&gt;
&lt;p&gt;You could e.g. try something like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sd_clock_hfclk_request();
uint32_t flag = 0;
// Enter main loop.
for (;;)
{
    if (NRF_LOG_PROCESS() == false)
    {
        power_manage();
    }
    sd_clock_hfclk_is_running(&amp;amp;flag);
    NRF_LOG_INFO(&amp;quot;Flag: %d&amp;quot;, flag);
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you dont&amp;#39;t get &amp;quot;Flag: 1&amp;quot;, then you have a problem with the HF crystal. And you should then double check that the crystal on your board is mounted correctly, i.e. not shifted by 90 degrees for example.&lt;/p&gt;
&lt;p&gt;Yes, the ble_advertising_start() will return 0, and bsp will start blinking even if the HF crystal is not mounted. The SoftDevice will wait for the HF crystal to startup before you see any BLE activity.&lt;/p&gt;
&lt;p&gt;Attach a debugger, and use e.g. J-Link RTT viewer to see the nrf_log&amp;#39;s&lt;/p&gt;
&lt;p&gt;Let me know how it goes!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is external crystal neccessary at all on 52832</title><link>https://devzone.nordicsemi.com/thread/100703?ContentTypeID=1</link><pubDate>Fri, 29 Sep 2017 07:44:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a9454bc-612d-4430-92a1-cc1c030da9f8</guid><dc:creator>Roland</dc:creator><description>&lt;p&gt;@Sigurd,&lt;/p&gt;
&lt;p&gt;YES, i have changed the LF src to NRF_CLOCK_LF_SRC_RC. I used 16 for NRF_SDH_CLOCK_LF_RC_CTIV, i will try 32 again.&lt;/p&gt;
&lt;p&gt;More facts from my testing:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;As the application now does not need external LF xtal so i can actually compare the results that same application running on my custom board and the 52DK. on 52DK the application seems all working, as i can discover my services on central side. But just not on custom board.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I can not measure 32MHz waveform on my custom board&amp;#39;s HF xtal, so apparently it does not work for some reason(though i am not sure for now). But a question is if HF xtal not working is it possible that ble_advertising_start() returned err_code 0? And i can see LED blinking tells that bsp indicator is working.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is external crystal neccessary at all on 52832</title><link>https://devzone.nordicsemi.com/thread/100702?ContentTypeID=1</link><pubDate>Fri, 29 Sep 2017 07:21:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5faf38d5-3eba-44c0-96a2-4d010be776de</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Did you set the SoftDevice clock source in sdk_config.h to &lt;code&gt;NRF_CLOCK_LF_SRC_RC&lt;/code&gt; ?&lt;/p&gt;
&lt;p&gt;You should also set the &lt;code&gt;NRF_SDH_CLOCK_LF_RC_CTIV&lt;/code&gt; to 32, and the &lt;code&gt;NRF_SDH_CLOCK_LF_RC_TEMP_CTIV&lt;/code&gt; to 2.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is external crystal neccessary at all on 52832</title><link>https://devzone.nordicsemi.com/thread/100708?ContentTypeID=1</link><pubDate>Thu, 28 Sep 2017 16:33:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b408896-1b51-4f37-9e4b-e30d66494239</guid><dc:creator>Roland</dc:creator><description>&lt;p&gt;thanks @Sigurd and @RK for the clarifications. I may misunderstood some posts.&lt;/p&gt;
&lt;p&gt;My custom board of 52 already made, with an external HF 32M xtal, no LF though. So i think the only way now is to use internal RC osc for SD then. So am i correct to set NRF_SDH_CLOCK_LF_XTAL_ACCURACY in sdk_config.h to NRF_CLOCK_LF_XTAL_ACCURACY_250_PPM ?&lt;/p&gt;
&lt;p&gt;I am asking because though seems that i already made the application running on my custom board, and the advertising started (returned error code 0), but i can not find my device on central side. did not find any clue yet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is external crystal neccessary at all on 52832</title><link>https://devzone.nordicsemi.com/thread/100698?ContentTypeID=1</link><pubDate>Thu, 28 Sep 2017 07:38:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:273c2956-ccfa-4807-baf1-144f848f26f0</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Your 1) is incorrect. What is not recommended is using the HF clock to synthesize the LF clock.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is external crystal neccessary at all on 52832</title><link>https://devzone.nordicsemi.com/thread/100699?ContentTypeID=1</link><pubDate>Thu, 28 Sep 2017 07:25:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1f68d69-c9ca-487f-a34e-7f67ae02266d</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;External HF crystal is mandatory if you want to use the radio peripheral. If you are using BLE, you have to use an external 32 MHz crystal with a frequency tolerance of max 40 ppm. As mentioned in this &lt;a href="https://devzone.nordicsemi.com/question/153078/nrf52-internal-clock-without-crystal/?answer=153088#post-id-153088"&gt;post&lt;/a&gt;:&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;The external HF clock is critical for
data timing and more critical to keep
the bluetooth radio on the correct
frequency. All the 2.4GHz channels are
derived from the 32MHz crystal. So the
ppm accuracy of the xtal will be the
same ppm accuracy of your carrier in
the 2.4GHz band.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;2 .&lt;/p&gt;
&lt;p&gt;External LF crystal(32 kHz)is not mandatory, but recommend. See &lt;a href="https://devzone.nordicsemi.com/question/85/whats-the-benefit-of-having-an-external-32-khz-crystal/"&gt;this&lt;/a&gt; and &lt;a href="https://devzone.nordicsemi.com/question/953/what-low-frequency-clock-sources-can-i-use/"&gt;this post&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Since you are migrating to nRF52832, I recommend to take a look at the &lt;a href="https://devzone.nordicsemi.com/tutorials/35/"&gt;General PCB design guidelines for nRF52 series tutorial&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>