<?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>Clock config of the MESH sdk 1.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29698/clock-config-of-the-mesh-sdk-1-0</link><description>Hi, 
 IC : nrf52832
SDK : Mesh_v1.0.0 
 I am testing the light_switch demo of the Mesh_v1.0.0. 
 I don&amp;#39;t have 32kHz osc on my server board, so I have to change the clk config. I config the clock in server project like this: 
 config_params.lf_clk_cfg</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Jan 2018 01:43:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29698/clock-config-of-the-mesh-sdk-1-0" /><item><title>RE: Clock config of the MESH sdk 1.0</title><link>https://devzone.nordicsemi.com/thread/117839?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2018 01:43:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21b587ac-5460-4fa1-878e-d355f75bcada</guid><dc:creator>Beike</dc:creator><description>&lt;p&gt;yes, you are right.
Just doing this change is still working.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;config_params.lf_clk_cfg.source = NRF_CLOCK_LF_SRC_RC;
config_params.lf_clk_cfg.accuracy = NRF_CLOCK_LF_ACCURACY_20_PPM;
config_params.lf_clk_cfg.rc_ctiv = 16;
config_params.lf_clk_cfg.rc_temp_ctiv = 2;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Thanks for your answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clock config of the MESH sdk 1.0</title><link>https://devzone.nordicsemi.com/thread/117838?ContentTypeID=1</link><pubDate>Wed, 24 Jan 2018 15:47:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bc22da9-7413-4e39-9682-824486cddc6e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;According to &lt;a href="https://devzone.nordicsemi.com/question/184417/clock-config-of-the-mesh-sdk/"&gt;this case&lt;/a&gt;, you should stil be able to configure with RC oscillator without using NULL as the lfc_cfg. Make sure you also configure the rc_ctiv and rc_temp_ctiv.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clock config of the MESH sdk 1.0</title><link>https://devzone.nordicsemi.com/thread/117837?ContentTypeID=1</link><pubDate>Wed, 24 Jan 2018 02:45:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59319b93-f491-4a92-89ca-dcda0c659210</guid><dc:creator>Beike</dc:creator><description>&lt;p&gt;I has solved this problem.&lt;/p&gt;
&lt;p&gt;I find this in the server project:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; * @param p_clock_lf_cfg Low frequency clock source and accuracy.
   If NULL the clock will be configured as an RC source with rc_ctiv = 16 and .rc_temp_ctiv = 2
   In the case of XTAL source, the PPM accuracy of the chosen clock source must be greater than 
   or equal to the actual characteristics of your XTAL clock.
 * @param fault_handler Callback to be invoked in case of fault, cannot be NULL.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;so I do this changes in this fountion:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint32_t softdevice_setup(nrf_clock_lf_cfg_t lfc_cfg, nrf_fault_handler_t assertion_handler)
{
    #if !defined(HOST)
    if (assertion_handler == NULL)
    {
        assertion_handler = default_softdevice_assertion_handler;
    }

    #if defined(S110)
        RETURN_ON_ERROR(sd_softdevice_enable(lfc_cfg, assertion_handler));
    #else
    // RETURN_ON_ERROR(sd_softdevice_enable(&amp;amp;lfc_cfg, assertion_handler));
        RETURN_ON_ERROR(sd_softdevice_enable(NULL, assertion_handler));
    #endif
        RETURN_ON_ERROR(sd_nvic_EnableIRQ(SD_EVT_IRQn));
    #endif

    return NRF_SUCCESS;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;so, this project has run as respected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>