<?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>usb to suspend and ESB cannot accept data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94584/usb-to-suspend-and-esb-cannot-accept-data</link><description>Hi everyone, I use nrf52833 to make dongle. My test found that after suspend of usb, I tried to enable ESB rx mode, but I couldn&amp;#39;t receive rf data. What is the problem?The functionality I want is to enable ESB TX when USB is in suspend mode and then receive</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Dec 2022 14:20:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94584/usb-to-suspend-and-esb-cannot-accept-data" /><item><title>RE: usb to suspend and ESB cannot accept data</title><link>https://devzone.nordicsemi.com/thread/399728?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2022 14:20:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6adb1a32-38b8-45ad-b31e-414298c9380b</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;No, that sounds strange. I have not seen such issue before.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: usb to suspend and ESB cannot accept data</title><link>https://devzone.nordicsemi.com/thread/399548?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2022 00:12:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2999f667-9f3d-4d23-8adb-29e6929ae450</guid><dc:creator>summer</dc:creator><description>&lt;p&gt;hi，Thank you very much。&amp;nbsp;&lt;span&gt;My tests found that when USB goes to suspend，if hfclk is running,w&lt;/span&gt;hen using this function (app_usbd_wakeup_req() ) to wake up the host, it was discovered that hfclk must be turned off first,Otherwise, USB cannot wake up the host.&lt;span class="transSent highlight" data-group="0-0"&gt;&lt;span&gt;Do you have any problems?&lt;/span&gt;&lt;/span&gt;&lt;span class="transSent" data-group="0-1"&gt;&lt;span&gt; In short, hfclk must be turned off before the device wakes up the host&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: usb to suspend and ESB cannot accept data</title><link>https://devzone.nordicsemi.com/thread/399489?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2022 15:27:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a9bf8a9-69dd-4fbf-8e02-e4360d8447bb</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In the ESB examples, we only call&amp;nbsp;clocks_start(), where this function is implemented as&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void clocks_start( void )
{
    NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED = 0;
    NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART = 1;

    while (NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED == 0);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Instead, when you have a application that uses USB as well, you should use the clock driver, and call &amp;nbsp;the function nrf_drv_clock_hfclk_request()&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/hardware_driver_clock.html?cp=8_1_2_0_0_1#hardware_driver_clock_hfclk"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/hardware_driver_clock.html?cp=8_1_2_0_0_1#hardware_driver_clock_hfclk&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: usb to suspend and ESB cannot accept data</title><link>https://devzone.nordicsemi.com/thread/399306?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2022 02:34:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a02bd66-4e3b-41e3-9193-e702dd1e5e74</guid><dc:creator>summer</dc:creator><description>&lt;p&gt;Hi,&lt;span&gt;I would like to ask how to keep HFXO in working state when usb are in suspend?&amp;nbsp;&lt;/span&gt;Is there a code for reference?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: usb to suspend and ESB cannot accept data</title><link>https://devzone.nordicsemi.com/thread/399179?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2022 12:19:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:052b9332-f0bd-4275-9731-776371eada9c</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could it be that the HFXO was turned off when USB was suspended? Make sure that HFXO is running when you are sending/receiving ESB packets.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>