<?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>Questions about the USB power of the nRF52840 DK board.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35090/questions-about-the-usb-power-of-the-nrf52840-dk-board</link><description>Hi. 
 I am using the nRF52840 DK board and have integrated the SDK15 ESB_Rx example with the HID example. 
 The nRF52840 DK board has two USB ports. (J2, J3) 
 
 J2: Firmware Programming 
 J3: HID 
 
 Is it necessary to connect USB to both J2 and J3 to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Jun 2018 07:27:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35090/questions-about-the-usb-power-of-the-nrf52840-dk-board" /><item><title>RE: Questions about the USB power of the nRF52840 DK board.</title><link>https://devzone.nordicsemi.com/thread/135067?ContentTypeID=1</link><pubDate>Thu, 07 Jun 2018 07:27:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b510f67-c208-47ee-b4da-d8716723dbfc</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Happy to see that you solved it. By default, both USBD HID examples in SDK 15 already initializes the UART in the&amp;nbsp;init_cli() function. If you then try to&amp;nbsp;&lt;span&gt;initialize the UART again, without uninitializing the old instance, you might get some error-code returned, and end up in the error-handler.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about the USB power of the nRF52840 DK board.</title><link>https://devzone.nordicsemi.com/thread/135043?ContentTypeID=1</link><pubDate>Thu, 07 Jun 2018 05:35:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7788116-b200-450a-a522-3a1d5c6e8169</guid><dc:creator>powerup</dc:creator><description>&lt;p&gt;I solved the problem.&lt;/p&gt;
&lt;p&gt;I commented out the Uart setting in Main() and it works correctly.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void uart_configure(void){
  uint32_t err_code;
  
  const app_uart_comm_params_t comm_params =
    {
        RX_PIN_NUMBER,
        TX_PIN_NUMBER,
        RTS_PIN_NUMBER,
        CTS_PIN_NUMBER,
        UART_HWFC,
        false,
        NRF_UART_BAUDRATE_115200
    };

  APP_UART_FIFO_INIT(&amp;amp;comm_params,
                       UART_RX_BUF_SIZE,
                       UART_TX_BUF_SIZE,
                       uart_error_handle,
                       APP_IRQ_PRIORITY_LOWEST,
                       err_code);

  APP_ERROR_CHECK(err_code);
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But I do not know the cause of the problem.&lt;/p&gt;
&lt;p&gt;Does J3 not work when I set the Uart?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about the USB power of the nRF52840 DK board.</title><link>https://devzone.nordicsemi.com/thread/135037?ContentTypeID=1</link><pubDate>Thu, 07 Jun 2018 04:14:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c0026bf-3d34-48c9-aba1-f122f9d5cb77</guid><dc:creator>powerup</dc:creator><description>&lt;p&gt;Running the SDK&amp;#39;s HID example, it works fine even if you connect the USB to J3 only.&lt;/p&gt;
&lt;p&gt;I seem to have missed something in the process of combining code.&lt;/p&gt;
&lt;p&gt;Is app_timer related to the power of J3?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Questions about the USB power of the nRF52840 DK board.</title><link>https://devzone.nordicsemi.com/thread/134714?ContentTypeID=1</link><pubDate>Tue, 05 Jun 2018 11:25:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36a34a83-9ef5-4a5e-94bb-6b7785797d9a</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="20383" url="~/f/nordic-q-a/35090/questions-about-the-usb-power-of-the-nrf52840-dk-board"]Is it necessary to connect USB to both J2 and J3 to use HID?[/quote]
&lt;p&gt;&lt;span&gt;No, it should work with only J3.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Did you make any changes to &amp;quot;ESB_Rx example with the HID example&amp;quot; that could have caused this?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have you tested with&amp;nbsp;&lt;em&gt;usbd_hid_composite&lt;/em&gt; example in SDK 15?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What is the position of the different switches on the DK?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What version of the DK do you have(it&amp;#39;s printed on the white sticker on the board)?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you try a different USB cable?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you try a&amp;nbsp;different USB port on the computer?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>