<?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>Problem between soft device handler and clock driver.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30355/problem-between-soft-device-handler-and-clock-driver</link><description>Hello, 
 I am starting a new thread concerning the two messages that I have posted about generating a 4MHz clock on nRF52832. I am using the nRF5_SDK_14.2.0_17b948a SDK. 
 See : 
 
 https://devzone.nordicsemi.com/f/nordic-q-a/12177/nrf52-clock-in-and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Feb 2018 12:28:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30355/problem-between-soft-device-handler-and-clock-driver" /><item><title>RE: Problem between soft device handler and clock driver.</title><link>https://devzone.nordicsemi.com/thread/120565?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2018 12:28:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5ab4a9f-dea4-4fff-9301-8ebac4c2bcc6</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Actually, &lt;code&gt;sd_clock_hfclk_request&lt;/code&gt;&lt;span&gt;&amp;nbsp;() w&lt;/span&gt;ill not wait until the clock has started. If you need confirmation when the clock has started you can register a Softdevice Handler Observer listening for SoC events: &lt;a title="SoftDevice Handler library" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/lib_softdevice_handler.html?cp=4_0_0_3_42"&gt;SoftDevice Handler library&lt;/a&gt;. Then the stack will send you an&amp;nbsp;&lt;em&gt;NRF_EVT_HFCLKSTARTED&lt;/em&gt; event when the clock has started. So you can still get a callback when the clock is ready, you will just have to take a different road to Rome.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem between soft device handler and clock driver.</title><link>https://devzone.nordicsemi.com/thread/120443?ContentTypeID=1</link><pubDate>Fri, 09 Feb 2018 14:30:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26b14afa-d842-43ee-bfac-06e8e07285c2</guid><dc:creator>Vincent Bela&amp;#239;che</dc:creator><description>&lt;p&gt;Hello Martin,&lt;br /&gt;Thank-you for your answer. Functions &lt;code&gt;sd_clock_hfclk_request&lt;/code&gt; and &lt;code&gt;nrf_drv_clock_hfclk_request&lt;/code&gt; do not have the same prototype. The former takes no argument, so I presume that when the hfclk is not ready then the function will not return until it is ready. Could you please confirm that this is its behaviour? &lt;br /&gt; The latter takes one argument which is a handler to be called immediately when the hfclk is ready, or later on when the hfclk has become ready.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem between soft device handler and clock driver.</title><link>https://devzone.nordicsemi.com/thread/120317?ContentTypeID=1</link><pubDate>Thu, 08 Feb 2018 15:27:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08c7c29e-d471-4f6d-a53f-cbc6f39c4864</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think that your answer may be found in the comment I just posted here: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/30258/ble-with-timer"&gt;ble with timer&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Try using &lt;span&gt;sd_clock_hfclk_request() instead of &lt;code&gt;nrf_drv_clock_hfclk_request().&lt;/code&gt;&lt;/span&gt;Can you check that out?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>