<?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 Re: About LPC5528 USB DeviceStop function in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/About-LPC5528-USB-DeviceStop-function/m-p/1266915#M4677</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I think this is an issue with the USB_DeviceLpc3511IpControl API. I tried to replicate this by using CDC SDK example and I was able to see USB_DeviceStop returned error.&lt;/P&gt;
&lt;P&gt;As you can see error is first initialized as kStatus_USB_Error.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="FelipeGarcia_0-1619135562042.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/143024i0AEFB9434D3EB4D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FelipeGarcia_0-1619135562042.png" alt="FelipeGarcia_0-1619135562042.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then, when entering DeviceControlStop case you only modify registers and error flag is not modify, which means that error will still have initial value when exiting this function.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="FelipeGarcia_1-1619135600248.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/143025iABD23923AAE53E67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FelipeGarcia_1-1619135600248.png" alt="FelipeGarcia_1-1619135600248.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;/P&gt;
&lt;P&gt;Felipe&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;Note:&lt;/P&gt;
&lt;P&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored. Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;/P&gt;
&lt;P&gt;------------------------------------------------------------------------------&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Apr 2021 23:54:18 GMT</pubDate>
    <dc:creator>FelipeGarcia</dc:creator>
    <dc:date>2021-04-22T23:54:18Z</dc:date>
    <item>
      <title>About LPC5528 USB DeviceStop function</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/About-LPC5528-USB-DeviceStop-function/m-p/1265474#M4671</link>
      <description>&lt;P&gt;Hi，&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;When I use the USB1 of LPC5528, I want to turn off the device function through the USB_DeviceStop() function, but the result returned by calling the function fails. What may be the reason for this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if (kStatus_USB_Success != USB_DeviceStop(g_composite.deviceHandle)){&lt;BR /&gt;USB_PDBG("USB Device Stop failed\r\n");&lt;BR /&gt;return kERROR_Fail;&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 01:59:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/About-LPC5528-USB-DeviceStop-function/m-p/1265474#M4671</guid>
      <dc:creator>xunwan</dc:creator>
      <dc:date>2021-04-21T01:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: About LPC5528 USB DeviceStop function</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/About-LPC5528-USB-DeviceStop-function/m-p/1266915#M4677</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I think this is an issue with the USB_DeviceLpc3511IpControl API. I tried to replicate this by using CDC SDK example and I was able to see USB_DeviceStop returned error.&lt;/P&gt;
&lt;P&gt;As you can see error is first initialized as kStatus_USB_Error.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="FelipeGarcia_0-1619135562042.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/143024i0AEFB9434D3EB4D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FelipeGarcia_0-1619135562042.png" alt="FelipeGarcia_0-1619135562042.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then, when entering DeviceControlStop case you only modify registers and error flag is not modify, which means that error will still have initial value when exiting this function.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="FelipeGarcia_1-1619135600248.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/143025iABD23923AAE53E67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FelipeGarcia_1-1619135600248.png" alt="FelipeGarcia_1-1619135600248.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;/P&gt;
&lt;P&gt;Felipe&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;Note:&lt;/P&gt;
&lt;P&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored. Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;/P&gt;
&lt;P&gt;------------------------------------------------------------------------------&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 23:54:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/About-LPC5528-USB-DeviceStop-function/m-p/1266915#M4677</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2021-04-22T23:54:18Z</dc:date>
    </item>
  </channel>
</rss>

