<?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>Cannot start HF clock after release</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69753/cannot-start-hf-clock-after-release</link><description>Hi. 
 
 Device : nRF52820 
 SDK 17.0.2 ( Softdevice 7.2.0) 
 
 I initialized the clock as below to use USB. 
 
 And before changing to sleep mode, the clock was stopped to minimize current consumption. And after wake-up, it tries to run the clock again</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Dec 2020 10:17:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69753/cannot-start-hf-clock-after-release" /><item><title>RE: Cannot start HF clock after release</title><link>https://devzone.nordicsemi.com/thread/286673?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2020 10:17:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cf79551-9314-4376-8f38-a4b50b37d4b0</guid><dc:creator>moon.kim</dc:creator><description>&lt;p&gt;When I did this, the current consumption decreased and it was detected.&lt;/p&gt;
&lt;p&gt;It seems that the clock has been released as the current consumption has decreased.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrf_drv_clock_hfclk_release();

do
{
	//sd_app_evt_wait ();
	if (NRF_LOG_PROCESS() == false)
    {
        nrf_pwr_mgmt_run();
    }
	app_usbd_event_queue_process();
}while(gvICLK_get_SleepState() == true);

nrf_drv_clock_hfclk_request(NULL);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot start HF clock after release</title><link>https://devzone.nordicsemi.com/thread/286671?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2020 10:13:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8dc9b67-17ce-479b-b992-3fdde1fd7e65</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;What happens when you release the clock before entering sleep, does it not wake up again?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot start HF clock after release</title><link>https://devzone.nordicsemi.com/thread/286670?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2020 10:10:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76afd09c-fb9b-4cc4-8669-e878f68ee59f</guid><dc:creator>moon.kim</dc:creator><description>&lt;p&gt;If so, is there a way to reduce the current consumption in sleep mode when using USBD?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot start HF clock after release</title><link>https://devzone.nordicsemi.com/thread/286657?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2020 09:04:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:312b5170-9fbf-46a9-a7e0-2d075895d942</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It shouldn&amp;#39;t be neccessary to keep the clock running in sleep. Are you only receiving the USBDETECTED event if you don&amp;#39;t release the HFXO (&lt;span&gt;&lt;a title="USBD power-up sequence" href="https://infocenter.nordicsemi.com/topic/ps_nrf52833/usbd.html?cp=4_1_0_5_32_3#concept_usb_power"&gt;USBD power-up sequence&lt;/a&gt;&lt;/span&gt;)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot start HF clock after release</title><link>https://devzone.nordicsemi.com/thread/286398?ContentTypeID=1</link><pubDate>Wed, 23 Dec 2020 01:54:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c474dc20-ea16-4f1d-9bef-a9dbd67cfa5d</guid><dc:creator>moon.kim</dc:creator><description>&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;This problem is solved.&lt;/p&gt;
&lt;p&gt;However, when the device was in Sleep mode, nrf_drv_clock_hfclk_release() was performed and USB insert wake-up was not executed.&lt;/p&gt;
&lt;p&gt;Is there any way to reduce the current while using the USB wake-up event?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot start HF clock after release</title><link>https://devzone.nordicsemi.com/thread/286123?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2020 16:36:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73224886-a5a3-4744-b535-1e5df78ad27e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please make sure your building with the SOFTDEVICE_PRESENT flag, This flag makes it so that the clock driver uses the &lt;span&gt;&lt;a title="sd_clock_hfclk_request" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s122.api.v8.1.1/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html?cp=4_7_2_1_2_6_2_3#ga3e5afb495a1b0307c749cc268df94a74"&gt;sd_clock_hfclk_request&lt;/a&gt;&lt;/span&gt;() Softdevice function to start the clock, rather than trying to access the CLOCK peripheral directly (this is one of the peripherals reserved to the Softdevice).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>