<?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>How do I keep the 32KHz crystal active 100% of the time for testing?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105043/how-do-i-keep-the-32khz-crystal-active-100-of-the-time-for-testing</link><description>I&amp;#39;m working on a design that is closing in on production. The design incorporates an nRF52840 with an external 32MHz and 32KHz crystal. The firmware is based on NCS 2.2.0. We are sending a sample to our crystal vendor to assist with crystal matching and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Oct 2023 10:35:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105043/how-do-i-keep-the-32khz-crystal-active-100-of-the-time-for-testing" /><item><title>RE: How do I keep the 32KHz crystal active 100% of the time for testing?</title><link>https://devzone.nordicsemi.com/thread/452753?ContentTypeID=1</link><pubDate>Fri, 27 Oct 2023 10:35:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d5ab378-2b1b-4840-a747-02b709a7cb65</guid><dc:creator>Tristen</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/hahe"&gt;helsing&lt;/a&gt;&amp;nbsp;You are correct. It looks like I was given incorrect information from the contractor manufacturer as well. Thank you for the reality check!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I keep the 32KHz crystal active 100% of the time for testing?</title><link>https://devzone.nordicsemi.com/thread/452624?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 13:56:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c346bc4-d402-4bc1-a6e1-2903e8ba124a</guid><dc:creator>helsing</dc:creator><description>[quote user=""]The 32MHz crystal is on 100% of the time, however, the 32KHz crystal is only on when needed.[/quote]
&lt;p&gt;Did you intend to say the opposite? By default, at least for the DK, the LFCLK is always enabled. HFCLK consumes more power and is turned off when not needed.&lt;/p&gt;
&lt;p&gt;Here is an example showing how to keep HFCLK running:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;a title="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/esb/esb_ptx/src/main.c#l71-l102" href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/esb/esb_ptx/src/main.c#L71-L102" rel="noopener noreferrer" target="_blank"&gt;https://github.com/nrfconnect/sdk-nrf/blob/main/samples/esb/esb_ptx/src/main.c#L71-L102&lt;/a&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can check the .config-file in your build file to see which configs are enabled. It should look something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC is not set
CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=y
# CONFIG_CLOCK_CONTROL_NRF_K32SRC_SYNTH is not set
# CONFIG_CLOCK_CONTROL_NRF_K32SRC_EXT_LOW_SWING is not set
# CONFIG_CLOCK_CONTROL_NRF_K32SRC_EXT_FULL_SWING is not set
# CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM is not set
# CONFIG_CLOCK_CONTROL_NRF_K32SRC_250PPM is not set
# CONFIG_CLOCK_CONTROL_NRF_K32SRC_150PPM is not set
# CONFIG_CLOCK_CONTROL_NRF_K32SRC_100PPM is not set
# CONFIG_CLOCK_CONTROL_NRF_K32SRC_75PPM is not set
CONFIG_CLOCK_CONTROL_NRF_K32SRC_50PPM=y
# CONFIG_CLOCK_CONTROL_NRF_K32SRC_30PPM is not set
# CONFIG_CLOCK_CONTROL_NRF_K32SRC_20PPM is not set
CONFIG_CLOCK_CONTROL_NRF_ACCURACY=50&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I keep the 32KHz crystal active 100% of the time for testing?</title><link>https://devzone.nordicsemi.com/thread/452563?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 12:52:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5629d30a-4801-47d8-ad25-514eeee632fb</guid><dc:creator>Tristen</dc:creator><description>&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_CLOCK_CONTROL_NRF_CALIBRATION_LF_ALWAYS_ON"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;CONFIG_CLOCK_CONTROL_NRF_CALIBRATION_LF_ALWAYS_ON&amp;nbsp;&lt;/a&gt;only applies to the internal RC, not the XTAL.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I keep the 32KHz crystal active 100% of the time for testing?</title><link>https://devzone.nordicsemi.com/thread/452546?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 12:10:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e6b850e-bb48-4778-b097-798f6de16857</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Please also see &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfx/drivers/clock/hal.html#clock-hal"&gt;Clock HAL&lt;/a&gt; and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfx/drivers/clock/hal.html#c.nrf_clock_alwaysrun_set"&gt;nrf_clock_alwaysrun_set&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I keep the 32KHz crystal active 100% of the time for testing?</title><link>https://devzone.nordicsemi.com/thread/452537?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 11:55:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4e11c0c-f779-4e6f-8a45-1fce8a731418</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Tristen,&lt;/p&gt;
&lt;p&gt;I believe &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#!%5ECONFIG_CLOCK_CONTROL_NRF_CALIBRATION_LF_ALWAYS_ON$"&gt;CONFIG_CLOCK_CONTROL_NRF_CALIBRATION_LF_ALWAYS_ON&lt;/a&gt; is what you are looking for.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>