<?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>App will not run on target when LFCLK is not present</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30314/app-will-not-run-on-target-when-lfclk-is-not-present</link><description>SDK14.2.0 sd132v5.0.0 nRF52832 
 I&amp;#39;ve looked for a solution to my issue on the discussion forum, but can&amp;#39;t find an answer. I am working with the buttonless DFU peripheral example. It works perfectly on my board when the LFCLK is running, but when I disconnect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 Feb 2018 20:09:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30314/app-will-not-run-on-target-when-lfclk-is-not-present" /><item><title>RE: App will not run on target when LFCLK is not present</title><link>https://devzone.nordicsemi.com/thread/120168?ContentTypeID=1</link><pubDate>Wed, 07 Feb 2018 20:09:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5cb5a35-6d49-44d7-99de-137f06d3c15b</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Please note that there is a change introduced in S132 v.5.0.0, from the migration document:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;strong&gt;RC Oscillator accuracy&lt;/strong&gt;&lt;br /&gt;The RC oscillator accuracy can now be set to any of the defined NRF_CLOCK_LF_ACCURACY values and there is no default value anymore.&lt;br /&gt;In other words, the nrf_clock_lf_cfg_t::accuracy parameter now has the same functionality when used with the RCOSC clock&lt;br /&gt;source as with the XTAL clock source. The RC oscillator accuracy should be set to a value appropriate for the chip.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;/p&gt;
&lt;p&gt;I.e., make sure that you use&amp;nbsp;#define NRF_SDH_CLOCK_LF_XTAL_ACCURACY 1, when using the LFRC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App will not run on target when LFCLK is not present</title><link>https://devzone.nordicsemi.com/thread/120167?ContentTypeID=1</link><pubDate>Wed, 07 Feb 2018 20:04:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d84d472-4a87-4bb9-a3c5-fb5237ccef05</guid><dc:creator>Doug_H</dc:creator><description>&lt;p&gt;That fixed it! Thanks again, you just saved me a ton of time and rework!&lt;/p&gt;
&lt;p&gt;For others that run into this problem. To summarize:&lt;/p&gt;
&lt;p&gt;In SDK14 when running on custom hardware with no LFCLK you have to change the settings for the Softdevice and for the Drivers per&amp;nbsp;&lt;span class="user-name"&gt;&lt;span class="ui-userpresence ui-tip present"&gt;&lt;/span&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/ambystomalabs"&gt;AmbystomaLabs&lt;/a&gt; instructions above. You also need to set values for NRF_SDH_CLOCK_LF_RC_CTIV and NRF_SDH_CLOCK_LF_RC_TEMP_CTIV. There are some recommendations posted in other threads that I used:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="user-name"&gt;NRF_SDH_CLOCK_LF_RC_CTIV=32&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="user-name"&gt;NRF_SDH_CLOCK_LF_RC_TEMP_CTIV=2&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App will not run on target when LFCLK is not present</title><link>https://devzone.nordicsemi.com/thread/120165?ContentTypeID=1</link><pubDate>Wed, 07 Feb 2018 19:36:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f94c53a7-54d6-4d5e-979e-221c4c728e02</guid><dc:creator>Doug_H</dc:creator><description>&lt;p&gt;Thank you very much, this is super helpful! I&amp;#39;ll give this a try.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App will not run on target when LFCLK is not present</title><link>https://devzone.nordicsemi.com/thread/120163?ContentTypeID=1</link><pubDate>Wed, 07 Feb 2018 18:41:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fdc3ffc-4e57-427a-bf41-fa926eb50ac8</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;There are two entries in sdk_config.h for the LFRC.&amp;nbsp; Without reading through all the docs, I&amp;#39;m not sure what the difference is.&amp;nbsp; Just change both.&lt;/p&gt;
&lt;p&gt;Around line 174:&lt;/p&gt;
&lt;p&gt;// &amp;lt;o&amp;gt; CLOCK_CONFIG_LF_SRC&amp;nbsp; - LF Clock Source&lt;br /&gt;&amp;nbsp;&lt;br /&gt;// &amp;lt;0=&amp;gt; RC &lt;br /&gt;// &amp;lt;1=&amp;gt; XTAL &lt;br /&gt;// &amp;lt;2=&amp;gt; Synth &lt;br /&gt;&lt;br /&gt;#ifndef CLOCK_CONFIG_LF_SRC&lt;br /&gt;#define CLOCK_CONFIG_LF_SRC 0&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;And around line 3367:&lt;/p&gt;
&lt;p&gt;//==========================================================&lt;br /&gt;&lt;br /&gt;// &amp;lt;h&amp;gt; Clock - SoftDevice clock configuration&lt;br /&gt;&lt;br /&gt;//==========================================================&lt;br /&gt;// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_SRC&amp;nbsp; - SoftDevice clock source.&lt;br /&gt;&amp;nbsp;&lt;br /&gt;// &amp;lt;0=&amp;gt; NRF_CLOCK_LF_SRC_RC &lt;br /&gt;// &amp;lt;1=&amp;gt; NRF_CLOCK_LF_SRC_XTAL &lt;br /&gt;// &amp;lt;2=&amp;gt; NRF_CLOCK_LF_SRC_SYNTH &lt;br /&gt;&lt;br /&gt;#ifndef NRF_SDH_CLOCK_LF_SRC&lt;br /&gt;#define NRF_SDH_CLOCK_LF_SRC 0&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you are using a custom BSP then this may change.&amp;nbsp; The examples are written around the dk&amp;#39;s.&lt;/p&gt;
&lt;p&gt;If you still have doubts over it being configured correctly you can always follow the ble config struct through the code to make sure it is correct.&amp;nbsp; The config parameters just get passed to the SD when it is started.&lt;/p&gt;
&lt;p&gt;Setting it directly in nrf_sdh.c would solve the problem too.&amp;nbsp; Though I think Nordic would encourage you to work within the structure of the SDK.&lt;/p&gt;
&lt;p&gt;In nrf_sdh.c the config is layed out:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Notify observers about starting SoftDevice enable process.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sdh_state_observer_notify(NRF_SDH_EVT_STATE_ENABLE_PREPARE);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nrf_clock_lf_cfg_t const clock_lf_cfg =&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .source&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = NRF_SDH_CLOCK_LF_SRC,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .rc_ctiv&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = NRF_SDH_CLOCK_LF_RC_CTIV,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .rc_temp_ctiv&amp;nbsp; = NRF_SDH_CLOCK_LF_RC_TEMP_CTIV,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #ifdef S140&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .xtal_accuracy = NRF_SDH_CLOCK_LF_XTAL_ACCURACY&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .accuracy&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = NRF_SDH_CLOCK_LF_XTAL_ACCURACY&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #endif&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App will not run on target when LFCLK is not present</title><link>https://devzone.nordicsemi.com/thread/120161?ContentTypeID=1</link><pubDate>Wed, 07 Feb 2018 18:05:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7edc49d0-f546-48d8-97a7-638bb1537e1c</guid><dc:creator>Doug_H</dc:creator><description>&lt;p&gt;Thanks for the link. I can&amp;#39;t find hundreds of answers, but all the answers I did find (including your link) point to a config setting change for SDK 14.0 which I have tried but it does not work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App will not run on target when LFCLK is not present</title><link>https://devzone.nordicsemi.com/thread/120154?ContentTypeID=1</link><pubDate>Wed, 07 Feb 2018 17:07:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d4de538-e83e-4fd6-a49d-204cb00421de</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;There are literally hundreds of answers to this question on the devzone.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/24462/how-to-use-internal-lfclk"&gt;devzone.nordicsemi.com/.../how-to-use-internal-lfclk&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>