<?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</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28664/clock-config-of-the-mesh-sdk</link><description>Hi, 
 I am testing the light_switch demo of the nrf5_SDK_for_Mesh_v0.10.1-Alpha_src.

I don&amp;#39;t have 32kHz osc on my server board, so I have to change the clk config. I config the clock like this:

config_params.lf_clk_cfg.source = NRF_CLOCK_LF_SRC_RC;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Dec 2017 14:42:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28664/clock-config-of-the-mesh-sdk" /><item><title>RE: Clock config of the MESH sdk</title><link>https://devzone.nordicsemi.com/thread/113610?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2017 14:42:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbf3c143-9fc8-4a2d-8f84-c6ed6c7f9a88</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;I got an nRF51-DK (256K Flash and 32K RAM) board and removed the 32KHz LF crystal to simulate your board. I made the changes for the LF clock source in the mesh_core_setup(), I was able to get the light switch client running and it responds correctly to button presses.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#elif SD_BLE_API_VERSION &amp;gt;= 2
nrf_clock_lf_cfg_t lfc_cfg = {NRF_CLOCK_LF_SRC_RC, 32, 2, 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: Clock config of the MESH sdk</title><link>https://devzone.nordicsemi.com/thread/113611?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2017 13:16:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89ea653b-121a-4353-9830-b5e77e8ec110</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;You may have hit a softdevice assert when debugging and have fallen into the assert handler. Can you verify this ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clock config of the MESH sdk</title><link>https://devzone.nordicsemi.com/thread/113609?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2017 10:20:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bfab626-c151-4dcc-926f-7c397864f6ee</guid><dc:creator>mansfield</dc:creator><description>&lt;p&gt;It seems that the problem is not sd_softdevice_enable(). I debug the program step by step and find it sleep for ever at nrf_mesh_prov_generate_keys() in setup_provisionee(). The code I chaged is just led and clock:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/50045.main.c"&gt;main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clock config of the MESH sdk</title><link>https://devzone.nordicsemi.com/thread/113608?ContentTypeID=1</link><pubDate>Wed, 20 Dec 2017 13:22:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bd0e919-bdfa-4e78-9654-bd46a1fda4b8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please post the snippet of the code you used, and where you put it. Also please check what kind of error return code you have when you call sd_softdevice_enable()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clock config of the MESH sdk</title><link>https://devzone.nordicsemi.com/thread/113603?ContentTypeID=1</link><pubDate>Wed, 20 Dec 2017 02:54:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82d9cd20-cad3-4094-a399-1d79438b6525</guid><dc:creator>mansfield</dc:creator><description>&lt;p&gt;Thanks! I download the 1.0 version and test just now, but failed again. The softdevice is s130_2_0_1. And the clock set like this:      config_params.lf_clk_cfg.source = NRF_CLOCK_LF_SRC_RC;
config_params.lf_clk_cfg.xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_250_PPM;
config_params.lf_clk_cfg.rc_ctiv = 1;
config_params.lf_clk_cfg.rc_temp_ctiv = 1;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clock config of the MESH sdk</title><link>https://devzone.nordicsemi.com/thread/113607?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2017 13:57:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74dc8ec7-9c2e-4942-9d1e-0dfdac97ddf2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;You haven&amp;#39;t configure the config_params.lf_clk_cfg.rc_ctiv, it shouldn&amp;#39;t be 0 when you use RC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clock config of the MESH sdk</title><link>https://devzone.nordicsemi.com/thread/113606?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2017 10:39:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3368d34-26d0-4d47-a77a-b1a39a10d4b5</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;oops, jumped the gun a bit. It should be out today. Please mention the softdevice version that you are using in addition.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clock config of the MESH sdk</title><link>https://devzone.nordicsemi.com/thread/113605?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2017 09:56:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c73abd3-b6d6-40bd-96db-9891157ac8b0</guid><dc:creator>mansfield</dc:creator><description>&lt;p&gt;David,thank you! The IC is NRF51822 QFACA1, and the SDK is nrf5_SDK_for_Mesh_v0.10.1-Alpha_src.
I can&amp;#39;t find the 1.0 release version at the infocenter. The newest is nRF5 SDK for Mesh v0.10.0-alpha.
Can you give me the link please?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clock config of the MESH sdk</title><link>https://devzone.nordicsemi.com/thread/113604?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2017 09:49:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03e40c03-e3a2-4c56-a507-f6575f064208</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;please specify the &lt;strong&gt;IC version&lt;/strong&gt; and the &lt;strong&gt;SDK version&lt;/strong&gt; that you are that you are using . I think you should switch to the newest mesh release (1.0 release) so this is smoother going forward. If you need the internal LF RC source for the 32KHz , you do not need to set the crystal accuracy.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>