<?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>Relation between clock and softdevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115128/relation-between-clock-and-softdevice</link><description>I&amp;#39;am currently porting code from NRF51822 to NRF52805. In my old code I used the following line to initialize softdevice: ``` SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL); 
 ``` I&amp;#39;m not sure if parameter `NRF_CLOCK_LFCLKSRC_XTAL_20_PPM</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Oct 2024 12:07:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115128/relation-between-clock-and-softdevice" /><item><title>RE: Relation between clock and softdevice</title><link>https://devzone.nordicsemi.com/thread/504519?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2024 12:07:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a4bbd4e-f265-4aaf-a146-7d360c12cc00</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Johannes,&amp;nbsp;&lt;br /&gt;First of all the nRF5 SDK is&amp;nbsp;maintenance mode as we moved to nRF Connect SDK since 2020. For any new development we suggest to use nRF Connect SDK.&lt;br /&gt;&lt;br /&gt;Regarding your question, to set the LF clock you would need to looking to the sdkconfig.h file. Please look for&amp;nbsp;&lt;br /&gt;NRF_SDH_CLOCK_LF_SRC . Set it to 1 mean XTAL and 0 means RC. Please don&amp;#39;t use &lt;span&gt;NRF_CLOCK_LF_SRC_SYNTH&amp;nbsp;&lt;/span&gt;because it&amp;#39;s not tested for use with the softdevice.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You may need to check if&amp;nbsp;NRFX_CLOCK_CONFIG_LF_SRC and&amp;nbsp;CLOCK_CONFIG_LF_SRC are set to the same clock source or not.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>