<?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 USB host RETRYDIS in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-host-RETRYDIS/m-p/475077#M28896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an application with a K60 operating as a full-speed host, and have a question about the RETRYDIS bit in the USB0_ENDPT[0] register. Using the default value, 0, SETUP, IN, and OUT transactions operate normally. I would like to set this bit to allow the application to determine the response to NAKs according to the token PID. Specifically, NAKs are not permitted in response to a SETUP token, so instead of a hardware retry as would occur with RETRYDIS clear, the application will interpret a NAK as a failure without any reattempts. The problem I am encountering is the PID value returned in the buffer descriptor's TOK_PID[n] field during an IN transaction. During a IN transaction, the host generates the handshake, and a host is never permitted to generate a NAK or STALL, so I am assuming the only possible values of TOK_PID[n] after an IN transaction are DATA0, DATA1, timeout, and data error, however, I'm getting a NAK. If RETRYDIS is left clear, the same transaction works properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Jason Valenzuela&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Feb 2016 22:16:33 GMT</pubDate>
    <dc:creator>jvalenzuela</dc:creator>
    <dc:date>2016-02-19T22:16:33Z</dc:date>
    <item>
      <title>USB host RETRYDIS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-host-RETRYDIS/m-p/475077#M28896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an application with a K60 operating as a full-speed host, and have a question about the RETRYDIS bit in the USB0_ENDPT[0] register. Using the default value, 0, SETUP, IN, and OUT transactions operate normally. I would like to set this bit to allow the application to determine the response to NAKs according to the token PID. Specifically, NAKs are not permitted in response to a SETUP token, so instead of a hardware retry as would occur with RETRYDIS clear, the application will interpret a NAK as a failure without any reattempts. The problem I am encountering is the PID value returned in the buffer descriptor's TOK_PID[n] field during an IN transaction. During a IN transaction, the host generates the handshake, and a host is never permitted to generate a NAK or STALL, so I am assuming the only possible values of TOK_PID[n] after an IN transaction are DATA0, DATA1, timeout, and data error, however, I'm getting a NAK. If RETRYDIS is left clear, the same transaction works properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Jason Valenzuela&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 22:16:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-host-RETRYDIS/m-p/475077#M28896</guid>
      <dc:creator>jvalenzuela</dc:creator>
      <dc:date>2016-02-19T22:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: USB host RETRYDIS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-host-RETRYDIS/m-p/475078#M28897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible for the Host to have NAK during IN transaction. Please kindly refer to the following for details.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54449i03901703C3AE6264/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NXP Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 06:52:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-host-RETRYDIS/m-p/475078#M28897</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2016-02-22T06:52:04Z</dc:date>
    </item>
  </channel>
</rss>

