<?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 to configure Low-frequency external source in Zephyr?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80835/how-to-configure-low-frequency-external-source-in-zephyr</link><description>I would like to use an external clock for the nrf5340. 
 The documentation indicates that it is posible override the LFCLK control system to set another source by writing the register LFCLKSRC. 
 Documentation: https://infocenter.nordicsemi.com/topic</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Oct 2021 12:15:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80835/how-to-configure-low-frequency-external-source-in-zephyr" /><item><title>RE: How to configure Low-frequency external source in Zephyr?</title><link>https://devzone.nordicsemi.com/thread/335095?ContentTypeID=1</link><pubDate>Wed, 20 Oct 2021 12:15:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4845449a-c9e3-4860-9e59-889b3e301b1a</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The lfclk source is controlled through config options that you&amp;nbsp;enable in the prj.conf file for your application.&lt;/p&gt;
&lt;p&gt;If you have an external 32kHz crystal in you design you can use e.g.:&lt;br /&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=y&lt;br /&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_50PPM=y&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t have an external 32kHz crystal you can use, eg.:&lt;br /&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y&lt;br /&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC_CALIBRATION=y&lt;br /&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM=y&lt;/p&gt;
&lt;p&gt;Be aware that the nRF5340 have two cores, network and application. You should set the same 32kHz source for both cores. This can be done by&amp;nbsp;for instance update both projects with the same configuration (e.g. update prj.conf for both network and application project).&lt;/p&gt;
&lt;p&gt;But alternatively when you build the application project, then it automatically build the child image for the network core, so there is an alternative way of setting up the two cores&amp;nbsp;to use&amp;nbsp;the same 32kHz as described here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_multi_image.html?highlight=child%20image#image-specific-variables"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_multi_image.html?highlight=child%20image#image-specific-variables&amp;nbsp;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In short: You&amp;nbsp;can make some directories under your application &amp;#39;\child_image\NETWORK_CORE_PROJECT_NAME\prj.conf&amp;#39; with the config lines above.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>