<?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 Examples on nRF52 Dongle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49586/usb-examples-on-nrf52-dongle</link><description>Hello! I&amp;#39;m following the nRF52 Dongle programming guide to adapt the USB examples from SDK 15.3.0 to the nRF52840 Dongle. USB CDC ACM works fine, and I managed to get half of the MSC example to work. But the HID examples don&amp;#39;t seem to work. The application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Jul 2019 14:54:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49586/usb-examples-on-nrf52-dongle" /><item><title>RE: USB Examples on nRF52 Dongle</title><link>https://devzone.nordicsemi.com/thread/200799?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2019 14:54:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ab308fc-f316-43d0-a67d-0999d0dafb26</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I am sorry for the long delay. A huge portion of the support team are on vacation, which causes delayed responses.&lt;/p&gt;
&lt;p&gt;The reason the usbd_hid_generic example doesnt work on the dongle is because the error check inside&amp;nbsp;INIT_BSP_ASSIGN_RELEASE_ACTION triggers.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Inside &lt;em&gt;bsp_event_to_button_action_assign()&amp;nbsp;&lt;/em&gt;there is the following check:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;if (button &amp;lt; BUTTONS_NUMBER){
        .
        .
        .
    } else
    {
        err_code = NRF_ERROR_INVALID_PARAM;
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;When you are providing it with&amp;nbsp;BTN_MOUSE_LEFT (=2), which is bigger than&amp;nbsp;BUTTONS_NUMBER (=1), the function will return an error and the program will stop running.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Examples on nRF52 Dongle</title><link>https://devzone.nordicsemi.com/thread/199584?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2019 16:12:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05dcdb4f-f363-472e-90fc-ce4bdc2b458a</guid><dc:creator>pcc</dc:creator><description>&lt;p&gt;Hi again! No, sorry, I still couldn&amp;#39;t figure out why it&amp;#39;s not working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Examples on nRF52 Dongle</title><link>https://devzone.nordicsemi.com/thread/199271?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2019 12:20:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dceb7d4e-896e-4184-9241-569a4b753fe5</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I am sorry for the long delay. Have you been able to figure it out, or should I look into it?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Examples on nRF52 Dongle</title><link>https://devzone.nordicsemi.com/thread/197918?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2019 15:07:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:748b3de7-b91e-487b-89e4-e4bd03713cda</guid><dc:creator>pcc</dc:creator><description>&lt;p&gt;Thank you for your response! Sorry for not being specific enough, I meant the hardware peripheral examples under examples/peripheral/usbd_hid_generic and examples/peripheral/usbd_hid_composite. I am not using Softdevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Examples on nRF52 Dongle</title><link>https://devzone.nordicsemi.com/thread/197762?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2019 09:11:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b669862e-25e1-4757-a874-554bc327d396</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I was able to make the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Fble_sdk_app_hids_mouse.html&amp;amp;cp=5_1_4_2_2_16"&gt;HID Mouse Application&lt;/a&gt; work on the nRF52850 Dongle, I did this:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Opened the &lt;em&gt;ble_app_hids_mouse_pca10056_s140&lt;/em&gt; example in SES&lt;/li&gt;
&lt;li&gt;Changed the preprocessor definition BOARD_PCA_10056 to&amp;nbsp;BOARD_PCA10059 as described in the nRF52840 Dongle tutorial&lt;/li&gt;
&lt;li&gt;Dragged the application (examples\ble_peripheral\ble_app_hids_mouse\pca10056\s140\ses\Output\Release\Exe\ble_app_hids_mouse_pca10056_s140.hex)&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;and the S140 SoftDevice (components\softdevice\s140\hex\s140_nrf52_6.1.1_softdevice.hex) into the File Memory Layout window in the nRF Connect Desktop Programmer app&lt;/li&gt;
&lt;li&gt;Opened nRF Connect mobile app, and was able to locate and connect to nRF5_Mouse&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Try following these exact steps, and if it still doesn&amp;#39;t work. please tell me and I will look further into it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>