<?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 High Speed USB Bulk Data Receive Problem in Host Mode in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/High-Speed-USB-Bulk-Data-Receive-Problem-in-Host-Mode/m-p/523319#M5955</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kctang on Thu Jan 08 19:58:31 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the NGX 4330 board to interface with a spectrometer device, USB0 port is configured in USB host mode &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for high speed operation. The goal is reading a set of bulk IN data 7680 bytes in size. The program is based on&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the lpcusblib software codes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use the Pipe_IsINReceived(portnum) function to initiate the read operation and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pipe_Read_Stream_LE(portnum, &amp;amp;uv0_buf, sizeof(uv0_buf), NULL);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to read the USB data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the Pipe_Read_Stream_LE() will not stop and when I halt the software program and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;examine the uv0_buf[] data buffer, only 2560 bytes of data were received.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone help to solve the problem? Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The program codes for the read operation are shown as below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;portnum = Spectrometer_Interface.Config.PortNumber;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pipe_SelectPipe(portnum,Spectrometer_Interface.Config.X2DataINPipeNumber);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pipe_Unfreeze();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ret_code = HcdGetPipeStatus(PipeInfo[portnum][pipeselected[portnum]].PipeHandle);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if (Pipe_IsINReceived(portnum))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pipe_Read_Stream_LE(portnum, &amp;amp;uv0_buf, sizeof(uv0_buf), NULL);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pipe_ClearIN(portnum);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pipe_Freeze();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 16:44:16 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T16:44:16Z</dc:date>
    <item>
      <title>High Speed USB Bulk Data Receive Problem in Host Mode</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/High-Speed-USB-Bulk-Data-Receive-Problem-in-Host-Mode/m-p/523319#M5955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kctang on Thu Jan 08 19:58:31 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the NGX 4330 board to interface with a spectrometer device, USB0 port is configured in USB host mode &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for high speed operation. The goal is reading a set of bulk IN data 7680 bytes in size. The program is based on&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the lpcusblib software codes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use the Pipe_IsINReceived(portnum) function to initiate the read operation and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pipe_Read_Stream_LE(portnum, &amp;amp;uv0_buf, sizeof(uv0_buf), NULL);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to read the USB data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the Pipe_Read_Stream_LE() will not stop and when I halt the software program and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;examine the uv0_buf[] data buffer, only 2560 bytes of data were received.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone help to solve the problem? Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The program codes for the read operation are shown as below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;portnum = Spectrometer_Interface.Config.PortNumber;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pipe_SelectPipe(portnum,Spectrometer_Interface.Config.X2DataINPipeNumber);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pipe_Unfreeze();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ret_code = HcdGetPipeStatus(PipeInfo[portnum][pipeselected[portnum]].PipeHandle);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if (Pipe_IsINReceived(portnum))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pipe_Read_Stream_LE(portnum, &amp;amp;uv0_buf, sizeof(uv0_buf), NULL);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pipe_ClearIN(portnum);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pipe_Freeze();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:44:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/High-Speed-USB-Bulk-Data-Receive-Problem-in-Host-Mode/m-p/523319#M5955</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:44:16Z</dc:date>
    </item>
  </channel>
</rss>

