<?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>nrf52840  msd and hid error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42286/nrf52840-msd-and-hid-error</link><description>Hi， 
 My english is not good, please forgive me. 
 
 msd and hid device，set as follow: 
 //msd------------------------------------------------------------- 
 APP_USBD_MSC_GLOBAL_DEF(m_app_msc,0,hw_usb_msc_user_ev_handler,(NRF_DRV_USBD_EPIN1,NRF_DRV_USBD_EPOUT1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 18 Jan 2019 10:03:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42286/nrf52840-msd-and-hid-error" /><item><title>RE: nrf52840  msd and hid error</title><link>https://devzone.nordicsemi.com/thread/166430?ContentTypeID=1</link><pubDate>Fri, 18 Jan 2019 10:03:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdb2f66d-5057-440a-a5b2-9676267e4ae4</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am sorry for the late reply.&lt;/p&gt;
&lt;p&gt;[quote][/quote]&lt;/p&gt;
&lt;p&gt;&lt;span&gt;APP_USBD_HID_GENERIC_GLOBAL_DEF(m_app_hid_generic_in,1,hid_user_ev_handler,(NRF_DRV_USBD_EPIN2,NRF_DRV_USBD_EPOUT2),reps,1,0,APP_USBD_HID_SUBCLASS_NONE,APP_USBD_HID_PROTO_GENERIC);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have you tried setting the buffers to align the size of your input and output report? Now you have set these to &amp;#39;1&amp;#39; and &amp;#39;0&amp;#39;, but it seems that this should be set to 63, 0.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you share a project that is showing this issue?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Håkon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840  msd and hid error</title><link>https://devzone.nordicsemi.com/thread/164853?ContentTypeID=1</link><pubDate>Thu, 10 Jan 2019 09:44:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19b6e370-da63-4168-8fa4-8c379923304e</guid><dc:creator>etomatoes</dc:creator><description>&lt;p&gt;Hi，&lt;/p&gt;
&lt;p&gt;Thanks for your replay.&lt;/p&gt;
&lt;p&gt;1、It has out section. Communicate between pc and device（52840）.&lt;/p&gt;
&lt;p&gt;#define DEF_HID_DSC_NEXT() { \&lt;br /&gt; 0x05, 0x01, \&lt;br /&gt; 0x09, 0x00, \&lt;br /&gt; 0xa1, 0x01, \&lt;br /&gt; 0x15, 0x00, \&lt;br /&gt; 0x25, 0xff, \&lt;br /&gt; 0x19, 0x01, \&lt;br /&gt; 0x29, 0x08, \&lt;br /&gt; 0x95, 0x40, \&lt;br /&gt; 0x75, 0x08, \&lt;br /&gt; 0x81, 0x02, \&lt;br /&gt; 0x19, 0x01, \&lt;br /&gt; 0x29, 0x08, \&lt;br /&gt; 0x91, 0x02, \&lt;br /&gt; 0xc0 \&lt;br /&gt;}&lt;br /&gt;APP_USBD_HID_GENERIC_SUBCLASS_REPORT_DESC(hid_desc,DEF_HID_DSC_NEXT());&lt;br /&gt;static const app_usbd_hid_subclass_desc_t * reps[] = {&amp;amp;hid_desc};&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2、&lt;span&gt;Independent enable HID or MSD.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Yes，i&amp;#39;m sure.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840  msd and hid error</title><link>https://devzone.nordicsemi.com/thread/164785?ContentTypeID=1</link><pubDate>Wed, 09 Jan 2019 19:17:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bab7d31-f94b-4207-98e6-157adbabaef7</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How does your descriptor look for HID generic? Does it have an output section?&amp;nbsp;&lt;/p&gt;
[quote user="etomatoes"]2、Independent enable HID or MSD.[/quote]
&lt;p&gt;&amp;nbsp;If you enable only HID, it works (both IN and OUT). If you only enable MSD, it works. Is that correct?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840  msd and hid error</title><link>https://devzone.nordicsemi.com/thread/164651?ContentTypeID=1</link><pubDate>Wed, 09 Jan 2019 09:31:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d507499a-5429-4caa-9b89-4185e7c2509a</guid><dc:creator>etomatoes</dc:creator><description>&lt;p&gt;The following options work will：&lt;/p&gt;
&lt;p&gt;1、hid change to:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;APP_USBD_HID_GENERIC_GLOBAL_DEF(m_app_hid_generic_in,1,hid_user_ev_handler,(NRF_DRV_USBD_EPIN2),reps,1,0,APP_USBD_HID_SUBCLASS_NONE,APP_USBD_HID_PROTO_GENERIC);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;it works will.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2、Independent enable HID or MSD.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;it works will.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>