<?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>Processor Expert SoftwareのトピックRe: Is there a know issue with USB ClearFeature and the DATA0 toggle?</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/Is-there-a-know-issue-with-USB-ClearFeature-and-the-DATA0-toggle/m-p/358908#M2741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just received a response from the technical service request that said that I should move to the KSDK USB stack.&amp;nbsp; There is a suggestion to set the DTS bit along with clearing of the DATA0/1 bit, but when I tried that, it still had problems.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Aug 2014 14:21:37 GMT</pubDate>
    <dc:creator>marcbunyard</dc:creator>
    <dc:date>2014-08-27T14:21:37Z</dc:date>
    <item>
      <title>Is there a know issue with USB ClearFeature and the DATA0 toggle?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Is-there-a-know-issue-with-USB-ClearFeature-and-the-DATA0-toggle/m-p/358906#M2739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the K20 with MQX Lite and Processor Expert, and I'm having a problem with the USB CLEAR FEATURE command.&amp;nbsp; The command is a CLEAR FEATURE (Endpoint Halt, Endpoint 1 IN).&amp;nbsp; After this command is handled, the DATA0/1 toggle is uneffected.&amp;nbsp; When I look at the code, and the documentation, there is a mismatch.&amp;nbsp; I've tried setting the DATA0/1 bit instead of clearing since the description of the bit is the last setting of this bit.&amp;nbsp; I have also used the value 0x40 for USB1_BD_LE_DATA1.&amp;nbsp; Nothing changes the behavior of the DATA0/1 bit when view with the USB analyzer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K20P100M72SF1RM.pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="BufferDescriptorFormat.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45824i5D0CF44130FBC4A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="BufferDescriptorFormat.png" alt="BufferDescriptorFormat.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Processor Expert USBX.c&lt;/P&gt;&lt;P&gt; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define USB1_BD_LE_DATA1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x&lt;STRONG style="color: #ff0000;"&gt;40&lt;/STRONG&gt;000000U&lt;/P&gt;&lt;P&gt;#define USB1_BD_LE_STALL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x04000000U&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void USB1_DeviceUnstallEndpoint(LDD_TDeviceData *DeviceDataPtr, uint8_t EpNum, uint8_t EpDir)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; USB1_TDeviceData&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *DevDataPtr = (USB1_TDeviceData*)DeviceDataPtr;&lt;BR /&gt;&amp;nbsp; USB1_TEpData&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *EpDataPtr;&lt;BR /&gt;&amp;nbsp; USB1_TBD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *BDPtr;&lt;/P&gt;&lt;P&gt;&amp;nbsp; USB1_UsbLock(DevDataPtr);&lt;BR /&gt;&amp;nbsp; EpDataPtr = &amp;amp;DevDataPtr-&amp;gt;EpData[((uint32_t)EpNum &amp;lt;&amp;lt; 0x01U)]; /* Get address of EPx data structure */&lt;BR /&gt;&amp;nbsp; if (EpDataPtr-&amp;gt;TransferType == LDD_USB_CONTROL) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Control EP? */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (EpDataPtr + 1)-&amp;gt;EpState = (USB1_TePState)((uint32_t)((EpDataPtr +1 )-&amp;gt;EpState) &amp;amp; ~(uint32)USB1_EP_STALLED);&lt;BR /&gt;&amp;nbsp; } else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (EpDir != LDD_USB_DIR_OUT) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EpDataPtr++;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BDPtr = EpDataPtr-&amp;gt;BDPtr;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BDPtr-&amp;gt;CtrlReg &amp;amp;= ~(USB1_BD_LE_STALL | &lt;STRONG style="color: #ff0000;"&gt;USB1_BD_LE_DATA1&lt;/STRONG&gt;); /* UNSTALL ODD BD entry, set data toggle to DATA0 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; (++BDPtr)-&amp;gt;CtrlReg &amp;amp;= ~(USB1_BD_LE_STALL | &lt;STRONG style="color: #ff0000;"&gt;USB1_BD_LE_DATA1&lt;/STRONG&gt;); /* UNSTALL EVEN BD entry, set data toggle to DATA0 */&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; EpDataPtr-&amp;gt;EpState = (USB1_TePState)((uint32_t)(EpDataPtr-&amp;gt;EpState) &amp;amp; ~(uint32)USB1_EP_STALLED);&lt;BR /&gt;&amp;nbsp; USB1_UsbUnlock(DevDataPtr);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 18:48:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Is-there-a-know-issue-with-USB-ClearFeature-and-the-DATA0-toggle/m-p/358906#M2739</guid>
      <dc:creator>marcbunyard</dc:creator>
      <dc:date>2014-08-14T18:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a know issue with USB ClearFeature and the DATA0 toggle?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Is-there-a-know-issue-with-USB-ClearFeature-and-the-DATA0-toggle/m-p/358907#M2740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thank you for reporting this issue. We are analyzing the problem now because it seems that there is an error. We will inform you about the resolution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 09:38:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Is-there-a-know-issue-with-USB-ClearFeature-and-the-DATA0-toggle/m-p/358907#M2740</guid>
      <dc:creator>marek_neuzil</dc:creator>
      <dc:date>2014-08-19T09:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a know issue with USB ClearFeature and the DATA0 toggle?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Is-there-a-know-issue-with-USB-ClearFeature-and-the-DATA0-toggle/m-p/358908#M2741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just received a response from the technical service request that said that I should move to the KSDK USB stack.&amp;nbsp; There is a suggestion to set the DTS bit along with clearing of the DATA0/1 bit, but when I tried that, it still had problems.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 14:21:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Is-there-a-know-issue-with-USB-ClearFeature-and-the-DATA0-toggle/m-p/358908#M2741</guid>
      <dc:creator>marcbunyard</dc:creator>
      <dc:date>2014-08-27T14:21:37Z</dc:date>
    </item>
  </channel>
</rss>

