<?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: USB0 writeEP timing in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB0-writeEP-timing/m-p/771939#M31048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, sorry for the later reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, there without related application note about USB device [bandwidth test] demo project.&lt;/P&gt;&lt;P&gt;There using four endpoints at [bwtest] demo.&lt;/P&gt;&lt;P&gt;If you check &lt;A href="https://www.keil.com/pack/doc/mw/USB/html/dev_hid_tutorial.html"&gt;here&lt;/A&gt; you could found Keil provide USB Stack for MCB4300(LPC4357) board.&lt;/P&gt;&lt;P&gt;There with PC host HID application located at Keil installation folder &amp;lt;HIDClient.exe&amp;gt;.&lt;/P&gt;&lt;P&gt;The related source code also at that folder.&lt;/P&gt;&lt;P&gt;More detailed info, please check below picture:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18581iB4536477E8EAB59B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Wed, 06 Jun 2018 05:39:13 GMT</pubDate>
    <dc:creator>Hui_Ma</dc:creator>
    <dc:date>2018-06-06T05:39:13Z</dc:date>
    <item>
      <title>USB0 writeEP timing</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB0-writeEP-timing/m-p/771935#M31044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to download 16MB of data from a flash memory in packets of 512 bytes using the LPC4353. My code is based on HID generic. I'm able to reliably download most of my data, but occasionally I get the odd glitch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At a low level, I use writeEP to write my packet of data to USB0. I've found that I need a delay between 0.5 and 1 ms between packets.&amp;nbsp;I also wait for&amp;nbsp;a flag which I set&amp;nbsp;in the HID_Ep_Hdlr interrupt callback whenever a USB_EVT_IN event occurs. bInterval has been set to 1ms. I understand that the microcontroller can only send the next packet of data to the PC at the PC's request?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I send data as fast as possible without any data loss?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any comments,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2018 15:45:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB0-writeEP-timing/m-p/771935#M31044</guid>
      <dc:creator>adb</dc:creator>
      <dc:date>2018-05-21T15:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: USB0 writeEP timing</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB0-writeEP-timing/m-p/771936#M31045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to detect if a packet has been acknowledged by the host?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2018 15:51:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB0-writeEP-timing/m-p/771936#M31045</guid>
      <dc:creator>adb</dc:creator>
      <dc:date>2018-05-22T15:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: USB0 writeEP timing</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB0-writeEP-timing/m-p/771937#M31046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, sorry for the later reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If customer had downloaded and refer &lt;A href="https://www.nxp.com/products/processors-and-microcontrollers/arm-based-processors-and-mcus/lpc-cortex-m-mcus/lpc4300-cortex-m4-m0/lpcopen-software-development-platform-lpc43xx:LPCOPEN-SOFTWARE-FOR-LPC43XX"&gt;LPCOpen software for LPC4300 family&lt;/A&gt; product about USB bandwidth test demo?&lt;/P&gt;&lt;P&gt;The USB bandwidth test demo located at default project folder:&lt;/P&gt;&lt;P&gt;..\lpcopen_3_02_keil_iar_mcb4357\LPC43xx_18xx\prj_mcb4357\keil\usbd_rom_bwtest&lt;/P&gt;&lt;P&gt;This demo use USB bulk transfer mode with USB host acknowledge.&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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, 28 May 2018 06:03:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB0-writeEP-timing/m-p/771937#M31046</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2018-05-28T06:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: USB0 writeEP timing</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB0-writeEP-timing/m-p/771938#M31047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your comments. This example uses WCID. Is it worthwhile modifying the example to work as HID (I've got a C# PC app that works with HID)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an app note on this code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand correctly: this program uses 4 endpoints as opposed to the 2 that were used in the generic HID example and implements a data transfer queue. How do I add data to the dataTosend queue? Are any PC app examples available?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your comments,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2018 15:26:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB0-writeEP-timing/m-p/771938#M31047</guid>
      <dc:creator>adb</dc:creator>
      <dc:date>2018-05-28T15:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: USB0 writeEP timing</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB0-writeEP-timing/m-p/771939#M31048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, sorry for the later reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, there without related application note about USB device [bandwidth test] demo project.&lt;/P&gt;&lt;P&gt;There using four endpoints at [bwtest] demo.&lt;/P&gt;&lt;P&gt;If you check &lt;A href="https://www.keil.com/pack/doc/mw/USB/html/dev_hid_tutorial.html"&gt;here&lt;/A&gt; you could found Keil provide USB Stack for MCB4300(LPC4357) board.&lt;/P&gt;&lt;P&gt;There with PC host HID application located at Keil installation folder &amp;lt;HIDClient.exe&amp;gt;.&lt;/P&gt;&lt;P&gt;The related source code also at that folder.&lt;/P&gt;&lt;P&gt;More detailed info, please check below picture:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18581iB4536477E8EAB59B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Wed, 06 Jun 2018 05:39:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB0-writeEP-timing/m-p/771939#M31048</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2018-06-06T05:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: USB0 writeEP timing</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB0-writeEP-timing/m-p/771940#M31049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for getting back to me on this. Can Keil's HIDClient,exe program communicate with a microcontroller that enumerates as WCID? I have my C# program that uses HID and it can't pick it up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2018 07:47:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB0-writeEP-timing/m-p/771940#M31049</guid>
      <dc:creator>adb</dc:creator>
      <dc:date>2018-06-07T07:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: USB0 writeEP timing</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB0-writeEP-timing/m-p/771941#M31050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find &lt;A href="https://github.com/micromint/LPCOpen-keil-lpc43xx/tree/master/applications/lpc18xx_43xx/examples/usbd_rom/usbd_rom_bwtest"&gt;USB Band Width test and WCID examples for USB ROM API&lt;/A&gt; , which provides a [LPCUsbTest.exe] for PC host.&lt;/P&gt;&lt;P&gt;Please check if that program works or not.&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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, 11 Jun 2018 07:49:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB0-writeEP-timing/m-p/771941#M31050</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2018-06-11T07:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: USB0 writeEP timing</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB0-writeEP-timing/m-p/771942#M31051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;Thanks for the link, I will take a look.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      From: Hui_Ma &amp;lt;admin@community.nxp.com&amp;gt;&lt;/P&gt;&lt;P&gt; To: Alan Ball &amp;lt;adball24@btinternet.com&amp;gt; &lt;/P&gt;&lt;P&gt; Sent: Monday, 11 June 2018, 8:49&lt;/P&gt;&lt;P&gt; Subject: Re:  - Re: USB0 writeEP timing&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;#yiv7992375219 * &lt;SPAN __jive_macro_name="margin"&gt;&lt;/SPAN&gt;#yiv7992375219 a &lt;SPAN __jive_macro_name="color"&gt;&lt;/SPAN&gt;#yiv7992375219 body {font-family:Helvetica, Arial, sans-serif;}#yiv7992375219 #yiv7992375219 h1, #yiv7992375219 h2, #yiv7992375219 h3, #yiv7992375219 h4, #yiv7992375219 h5, #yiv7992375219 h6, #yiv7992375219 p, #yiv7992375219 hr {}#yiv7992375219 .yiv7992375219button td {} &lt;/P&gt;&lt;P&gt;| &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  NXP Community  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;| &lt;/P&gt;&lt;P&gt;Re: USB0 writeEP timing&lt;/P&gt;&lt;P&gt;reply from Hui_Ma in LPC - View the full discussionHi Alan,&amp;nbsp;I find USB Band Width test and WCID examples for USB ROM API , which provides a  for PC host.Please check if that program works or not.Wish it helps.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Mike&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2018 08:59:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB0-writeEP-timing/m-p/771942#M31051</guid>
      <dc:creator>adb</dc:creator>
      <dc:date>2018-06-11T08:59:57Z</dc:date>
    </item>
  </channel>
</rss>

