<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic PE USB_HOST_STACK sends only first 4 bytes of the packet in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/PE-USB-HOST-STACK-sends-only-first-4-bytes-of-the-packet/m-p/753409#M4129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm using KDS v3.2.0 and USB_HOST_STACK PE Component from USB Stack v4.1.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm making a project for a custom vendor device that has only 2 bulk pipes, IN and OUT. I have almost the same project in CodeWarrior without using ProcessorExpert and that project works fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that PE USB Stack has 2 bugs on my side, and the main bug is that&amp;nbsp;&lt;EM&gt;_usb_host_send_data&lt;/EM&gt; function sends only first 4 bytes of the buffer. I debugged through the code and figured out that the problem function is&amp;nbsp;&lt;STRONG&gt;USB_LDD_HostSendData&lt;/STRONG&gt; (generated by PE) within &lt;EM&gt;khci.c&lt;/EM&gt; file. And this is the main difference between KDS and CW projects - CW ones uses&amp;nbsp;&lt;STRONG&gt;_usb_khci_atom_tr&amp;nbsp;&lt;/STRONG&gt;to send/receive data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second bug is that I can receive the data from the device, but cannot get received data size, it is always set to the buffer size. But this bug is not critical.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to port &lt;EM&gt;_usb_khci_task&lt;/EM&gt; function from CW project to KDS one, but without any success.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2018 21:57:49 GMT</pubDate>
    <dc:creator>qweasd</dc:creator>
    <dc:date>2018-05-14T21:57:49Z</dc:date>
    <item>
      <title>PE USB_HOST_STACK sends only first 4 bytes of the packet</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/PE-USB-HOST-STACK-sends-only-first-4-bytes-of-the-packet/m-p/753409#M4129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm using KDS v3.2.0 and USB_HOST_STACK PE Component from USB Stack v4.1.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm making a project for a custom vendor device that has only 2 bulk pipes, IN and OUT. I have almost the same project in CodeWarrior without using ProcessorExpert and that project works fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that PE USB Stack has 2 bugs on my side, and the main bug is that&amp;nbsp;&lt;EM&gt;_usb_host_send_data&lt;/EM&gt; function sends only first 4 bytes of the buffer. I debugged through the code and figured out that the problem function is&amp;nbsp;&lt;STRONG&gt;USB_LDD_HostSendData&lt;/STRONG&gt; (generated by PE) within &lt;EM&gt;khci.c&lt;/EM&gt; file. And this is the main difference between KDS and CW projects - CW ones uses&amp;nbsp;&lt;STRONG&gt;_usb_khci_atom_tr&amp;nbsp;&lt;/STRONG&gt;to send/receive data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second bug is that I can receive the data from the device, but cannot get received data size, it is always set to the buffer size. But this bug is not critical.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to port &lt;EM&gt;_usb_khci_task&lt;/EM&gt; function from CW project to KDS one, but without any success.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 21:57:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/PE-USB-HOST-STACK-sends-only-first-4-bytes-of-the-packet/m-p/753409#M4129</guid>
      <dc:creator>qweasd</dc:creator>
      <dc:date>2018-05-14T21:57:49Z</dc:date>
    </item>
  </channel>
</rss>

