<?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 HID Device ACK problem in USB Stack in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/HID-Device-ACK-problem-in-USB-Stack/m-p/253395#M7308</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&amp;nbsp; I'm new to the Freescale v4.1.1 stack and am noticing a problem with a SetReport request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We use HID for a request/response process for information from our device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The working stack (not Freescale) on a JB8 micro sends a Control Transfer which is made up of a SETUP transaction, six eight-byte OUT transactions (report is 48 bytes in size) and an IN transaction (the ACK packet)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The non-working stack (Freescale v4.1.1) on a Kinetis K20DX50 micro has the same structure as above except the report length is 40 bytes so there are two 16-byte and one 8-byte transactions.&amp;nbsp; The problem is that the protocol analyzer is reporting a length error on the ACK packet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The JB8 IN Transaction has a length of 0 but the K20 IN has a length of 16. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Is the ACK response part of the protocol stack (and broken) or is my application not doing something that it is supposed to do for the ACK to be correctly formed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Hopefully I can attach a .PDF with the protocol analyzer output so you can see the error)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Nov 2013 19:33:00 GMT</pubDate>
    <dc:creator>wre</dc:creator>
    <dc:date>2013-11-01T19:33:00Z</dc:date>
    <item>
      <title>HID Device ACK problem in USB Stack</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/HID-Device-ACK-problem-in-USB-Stack/m-p/253395#M7308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&amp;nbsp; I'm new to the Freescale v4.1.1 stack and am noticing a problem with a SetReport request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We use HID for a request/response process for information from our device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The working stack (not Freescale) on a JB8 micro sends a Control Transfer which is made up of a SETUP transaction, six eight-byte OUT transactions (report is 48 bytes in size) and an IN transaction (the ACK packet)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The non-working stack (Freescale v4.1.1) on a Kinetis K20DX50 micro has the same structure as above except the report length is 40 bytes so there are two 16-byte and one 8-byte transactions.&amp;nbsp; The problem is that the protocol analyzer is reporting a length error on the ACK packet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The JB8 IN Transaction has a length of 0 but the K20 IN has a length of 16. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Is the ACK response part of the protocol stack (and broken) or is my application not doing something that it is supposed to do for the ACK to be correctly formed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Hopefully I can attach a .PDF with the protocol analyzer output so you can see the error)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 19:33:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/HID-Device-ACK-problem-in-USB-Stack/m-p/253395#M7308</guid>
      <dc:creator>wre</dc:creator>
      <dc:date>2013-11-01T19:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: HID Device ACK problem in USB Stack</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/HID-Device-ACK-problem-in-USB-Stack/m-p/253396#M7309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stumbled onto the answer:&amp;nbsp; The application needs to set the 'size' to 0 after handling the incoming request in the Set Report callback.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 16:40:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/HID-Device-ACK-problem-in-USB-Stack/m-p/253396#M7309</guid>
      <dc:creator>wre</dc:creator>
      <dc:date>2013-11-14T16:40:05Z</dc:date>
    </item>
  </channel>
</rss>

